voyent
Icefaces 4.0 BETA <ace:pushbutton>feature wanted  XML
Forum Index -> Development Build Feedback
Author Message
arrowwind

Joined: 23/Dec/2008 00:00:00
Messages: 12
Offline


there are attributes like type(button,submit,reset) and onXXX in the h:commandbutton. Is it possible that ace:pushbutton supports these attributes?

Thank you.
ken.fyten

Joined: 26/Oct/2004 00:00:00
Messages: 1334
Offline


Hi,

The ACE components do not currently support the HTML pass-through attributes such as onClick, etc. The main reason for this is that for many of the more complex components these events would be not that useful since they would have to apply to the entire component region. For example, for ace:dateTimeEntry, when rendered as an calendar.

If you would like us to pursue this please create a new enhancement JIRA for it and vote for it.

Alternatively, if you could explain a bit more about your specific use-case perhaps I could suggest an alternative approach that would work.


Regards,
Ken

Ken Fyten
VP Product Development
ICEsoft Technologies, Inc.
arrowwind

Joined: 23/Dec/2008 00:00:00
Messages: 12
Offline


Hi,

Thank you for your explanation.

As I dont' know the link of jira for icefaces, I just post the use-case for these features.

Here are the use-cases for the feature.

1. For ace:dialog and ace:panel, they can be shown and hidden by the client side code. But the show() and hide() method in this case should be a button click. but ace:button tag doesn't have it (actually, add the onclick attribute in the tag, the code works) .

2. For the type(Reset and button), the form reset button is useful, when the user modify something by mistake. The developer doesn't need to write any code but reset. This attribute has been there in JSF standard button component for a long time.

I hope these use-cases are useful.
Thank you
ken.fyten

Joined: 26/Oct/2004 00:00:00
Messages: 1334
Offline


Hi,

For the onClick scenario, please investigate the use of the <ace:ajax event="activate" onStart="myDialog.show();return false;" /> syntax. This will allow you to define a JavaScript callback when the button is clicked, and have that callback cancel the ajax submit, thus resulting in it being handled exclusively on the client (ace:ajax TLD is here).

With regard to the support for "reset", the reason this is not supported as in the h:commandButton is that for many of the more advanced components we cannot rely on the HTML form "reset" function to reliably reset the state of the components. Another mechanism would be required that would work reliably with all the components. I'll create an enhancement JIRA for this reset capability.

Regards,
Ken


Ken Fyten
VP Product Development
ICEsoft Technologies, Inc.
ken.fyten

Joined: 26/Oct/2004 00:00:00
Messages: 1334
Offline


Hi,

FYI I've created a JIRA for the "reset" button enhancement: http://jira.icesoft.org/browse/ICE-10115

Also, if there are other useful client event types that you would like to see on the components that could replace the onXXX attributes in functionality let us know and we can consider adding them as well.

Regards,
Ken

Ken Fyten
VP Product Development
ICEsoft Technologies, Inc.
 
Forum Index -> Development Build Feedback
Go to:   
Powered by JForum 2.1.7ice © JForum Team