ZK - Open Source Ajax Java FrameworkZK - Open Source Ajax Java Framework

Button with upload="true" don't use z-button-os

RFSLUX
2 Sep 2010 05:50:15 GMT
2 Sep 2010 05:50:15 GMT

Hi all,

im not sure if it's intend or a bug.
I'm trying zk5.04. Buttons have now default z-button-os.
If i give a button upload="true" the class changes to z-button.
Changeing the mold of the button has no effect.
Tested with ie7,8 and firefox.


Snippet:

<?page title="new page title" contentType="text/html;charset=UTF-8"?>
<zk>
<window title="new page title" border="normal">
	<button width="130px"  height="24px" id="btnNewUpload"	 label="New Upload" />
	<button width="130px"  height="24px" id="btnNewUpload2"	 label="New Upload" upload="true" />
</window>
</zk>

Best regards
Jörg

samchuang
2 Sep 2010 19:56:09 GMT
2 Sep 2010 19:56:09 GMT

Hi,

this is intend , using mold os will cause side effect

if you wanna to use os mold , you can use Fileupload.get()

<button label="File Upload Btn" onClick="Fileupload.get()">
</button>

RFSLUX
3 Sep 2010 03:19:04 GMT
3 Sep 2010 03:19:04 GMT

Hi samchuang,

hmm, i'm not really happy about the answer.

I saw in zkdemo that the uggly (sorry for using uggly :-)) window between upload and filebrowser from
os is no more needed, if you set upload="true". so i'm happy the ui for user looks better.

Now i've a window with 6 buttons and one looks different to the other 5 or i've to go back to my old code
with the dialog between window and filebrowser from filebrowser.
Third way to solve: I take all buttons back to trendy (this implicit alternative 4: commiting suicide :-) )

If you turn all buttons to mold os, than it would be great, if they really look alike.
Maybe a feature request for future version or is there a way i can use Fileupload.get() without the dialog between my window and os-filebrowser ?

It would be great, if i could use zk and not code an own way to solve this.

Best regards
Jörg

samchuang
5 Sep 2010 20:46:39 GMT
5 Sep 2010 20:46:39 GMT

Hi

if you think the file upload's dialog is uggly , you could custom your dialog

using Fileupload.setTemplate()