Feature Requests item #1119620, was opened at 2005-02-09 22:05
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=684978&aid=1119620&group_id=119783

Category: core
Group: 1.0
Status: Open
Priority: 5
Submitted By: Martijn Dashorst (dashorst)
Assigned to: Nobody/Anonymous (nobody)
Summary: Supply Button component

Initial Comment:
When desiging web applications, there is a need for a
Button component. The button component should have an
onClick event which fires when the button is clicked,
and/or a onDblClick event. A button can be 'enabled'
and 'visible'.

I'm not sure whether the HTML markup should be:       
             

    <input id="wicket-name" type="button" />,
    <wicket:button id="name"/>
    <button id="wicket-name"/>
    <span id="wicket-name"/>

The span/wicket:button variants will replace themselves
with markup generating a HTML button (either <button>
or <input type="button">). 

It should be possible to add a client side events to
alert the user of something terrible about to happen.
This could be specified in the onClick event in the
HTML markup as defined by the designer, or as a message
which will become a property in the component. So either:

    <input id="wicket-name" onClick="return
confirm('Are you sure?');"/>

in which Wicket leaves alone the onClick method, or:

    Button button = new Button("name");
    button.setConfirmationMessage("Are you sure?");
    add(button);

which generates previously mentioned input. I don't
know what is better for internationalization.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=684978&aid=1119620&group_id=119783


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop

Reply via email to