Re: way to traverse / get all form validators

2008-05-06 Thread michalb_cz

Sure I can - it's reported as 
http://issues.apache.org/jira/browse/WICKET-1592 WICKET-1592 

Michal 


Eelco Hillenius wrote:
 
 Good point. Looks to me like it is something we overlooked. We should
 probably add a method to get the form validators of a form.
 
 Could you open an RFE for that please?
 
 Eelco
 
 On Mon, May 5, 2008 at 2:31 AM, michalb_cz [EMAIL PROTECTED] wrote:

  thank you for response, but I need it for Form object - to get all
  IFormValidator objects associated with the Form object - through
  form.add(IFormValidator)
  --
  View this message in context:
 http://www.nabble.com/way-to-traverse---get-all-form-validators-tp17020385p17054006.html


 Sent from the Wicket - User mailing list archive at Nabble.com.


  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]


 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/way-to-traverse---get-all-form-validators-tp17020385p17080296.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: way to traverse / get all form validators

2008-05-05 Thread michalb_cz

thank you for response, but I need it for Form object - to get all
IFormValidator objects associated with the Form object - through
form.add(IFormValidator)
-- 
View this message in context: 
http://www.nabble.com/way-to-traverse---get-all-form-validators-tp17020385p17054006.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: ajax progress indicator

2008-05-02 Thread michalb_cz


i ii wrote:
 
 is documentation available for ajax progess indicator. i cannot find :(
 

see http://blog.ehour.nl/index.php/archives/18
scroll straight to bottom of the entry and look at the comments from Lock
and other wicket commiters too


Jonathan Locke:
Wicket.Ajax.registerPreCallHandler(onStartAjax);
Wicket.Ajax.registerPostCallHandler(onStopAjax);
Wicket.Ajax.registerFailureHandler(onStopAjax);

then just hide and show your indicator in onStartAjax() and onStopAjax() and
every single AJAX request on your site will magically spin that little
wheel.

-- 
View this message in context: 
http://www.nabble.com/ajax-progress-indicator-tp17018664p17020185.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



way to traverse / get all form validators

2008-05-02 Thread michalb_cz

Is there some way how to traverse all validators which are associated (added
through the add(IValidator) method) with the form? I look for something like
get(IValidator) [like List.get(Object obj) method] or ListIValidator
getValidators() methods on Form component 
-- 
View this message in context: 
http://www.nabble.com/way-to-traverse---get-all-form-validators-tp17020385p17020385.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: wicket cluster on tomcat 6

2007-12-13 Thread michalb_cz

I don't do that, but when I use setResponsePage(backPage) - links on backPage
are broken from time to time (I don't know the reason)
This exception is throwed:

org.apache.wicket.WicketRuntimeException: component
formChooseCategory:tableShowBooks:rows:202:cells:8:cell:editLink not found
on page ChooseCategoryPage[id = 32], listener interface =
[RequestListenerInterface name=ILinkListener, method=public abstract void
org.apache.wicket.markup.html.link.ILinkListener.onLinkClicked()]
 at
org.apache.wicket.request.AbstractRequestCycleProcessor.resolveListenerInterfaceTarget(AbstractRequestCycleProcessor.java:411)
 at
org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedPage(AbstractRequestCycleProcessor.java:456)
 at
org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:139)
 at org.apache.wicket.RequestCycle.step(RequestCycle.java:1152)
 at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1248)
 at org.apache.wicket.RequestCycle.request(RequestCycle.java:489)
 at
org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:343)
 at
org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:121)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

note that I use AjaxSelfUpdatingTimerBehavior behaviour on form, which
refresh table each second (btw the row number is changed each second)


Johan Compagner wrote:
 
 huh?
 When are you doing back by javascript in your wicket application?
 Do you have clientside scripts that does fancy things?
 
 normally if you want to go back to a previous page then just set that page
 as a response page (on the serverside)
 
 johan
 
 
 
 On Dec 13, 2007 11:49 AM, michalb_cz [EMAIL PROTECTED] wrote:
 

 Any workaround? I can't do just back in history (for example by
 javascript),
 because I need rerender the back page ('cos I modify back page's model)


 Sebastiaan van Erk wrote:
 
  It has to do with the page store. Note that the back button will work,
  but clicking on links on the page after you use the back button will
  cause page expired.
 
  See:
 
 
 http://www.slideshare.net/jcompagner/session-stores-page-maps-and-pages/
 
  if you want the nitty gritty details.
 
  But I still think you should first verify that this is actually what is
  happening.
 
  Regards,
  Sebastiaan
 
  michalb_cz wrote:
  And the reason? Why back button won't work on cluster?
 
 
 
  Matej Knopp-2 wrote:
  Hi,
 
  at this point back button will not work across cluster (it's planned
  though). However, the failover for last accessed page should work
  anyway. If it doesn't, you have probably problem in your
  configuration.
 
  -Matej
 
 
 
 
 

 --
 View this message in context:
 http://www.nabble.com/wicket-cluster-on-tomcat-6-tp14147973p14313634.html
  Sent from the Wicket - User mailing list archive at
 Nabble.comhttp://nabble.com/
 .


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 
 

-- 
View this message in context: 
http://www.nabble.com/wicket-cluster-on-tomcat-6-tp14147973p14314938.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



wicket cluster on tomcat 6

2007-12-04 Thread michalb_cz

Lo,

I have been trying to make Tomcat cluster with Wicket, but every time when
there is some operation which use session bound information (backpage
object, models...etc.) PageExpired error occures.
It seems rather like problem in cluster configuration not in wicket, but
maybe somebody here has some experience with this. Note that everything is
ok when one of two cluster node (one of server) is turn off.
(all requests are managed by only one server) or when requests are made on
stateless pages.

Apache HTTP (as loadbalancer)
httpd.conf
JkMount  /wicketapp/* router

worker.properties
worker.list=router
# Set properties for worker1 (ajp12)
worker.worker1.type=ajp13
worker.worker1.host=server1
worker.worker1.port=8009
worker.worker1.lbfactor=1
worker.worker1.redirect=worker2
# Set properties for worker2 (ajp13)
worker.worker2.type=ajp13
worker.worker2.host=server2
worker.worker2.port=8009
worker.worker2.lbfactor=1
worker.worker2.connection_pool_timeout=600
worker.worker2.socket_keepalive=1
worker.worker2.socket_timeout=60
# Define the LB worker
worker.router.type=lb
worker.router.balance_workers=worker1,worker2

Tomcat 6
server.xml
Cluster className=org.apache.catalina.ha.tcp.SimpleTcpCluster
name=wicketapp
managerClassName=org.apache.catalina.ha.session.DeltaManager
expireSessionsOnShutdown=false
 useDirtyFlag=true

   Channel className=org.apache.catalina.tribes.group.GroupChannel
Membership 
className=org.apache.catalina.tribes.membership.McastService
mcastAddr=228.0.0.4
mcastPort=45564
mcastFrequency=500
mcastDropTime=3000/

Receiver 
className=org.apache.catalina.tribes.transport.nio.NioReceiver
tcpListenAddress=auto
tcpListenPort=11901
tcpSelectorTimeout=100
tcpThreadCount=2/

Sender
   
className=org.apache.catalina.tribes.transport.ReplicationTransmitter
replicationMode=synchronous  
Transport
className=org.apache.catalina.tribes.transport.nio.PooledParallelSender/
/Sender

   /Channel

   Valve 
className=org.apache.catalina.ha.tcp.ReplicationValve
filter=.*\.gif;.*\.js;.*\.jpg;.*\.htm;.*\.html;.*\.txt;.*\.css/

   Deployer className=org.apache.catalina.ha.deploy.FarmWarDeployer
tempDir=clusterzone/war-temp/
deployDir=clusterzone/war-deploy/
watchDir=clusterzone/war-listen/
watchEnabled=true/
/Cluster

-- 
View this message in context: 
http://www.nabble.com/wicket-cluster-on-tomcat-6-tf4942245.html#a14147973
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wicket Modal Window

2007-12-04 Thread michalb_cz


I had similar problem. I changed Button to AjaxButton and override onError()
and everything was alright. Note that you must call setOutputMarkupId(true)
on
components which use in another ajax-enabled component (like AjaxButton
is..).
In case below I must call feedback.setOutputMarkupId(true) where feedback =
new Feedback(feedback's wicket id).

like this:


Button btnOk = new AjaxButton(btnOk, form) {

@Override
protected void onSubmit(AjaxRequestTarget target, Form 
form) {
// something to do, when everything is ok and 
valid...
}

@Override
protected void onError(AjaxRequestTarget target, Form 
form) {   
target.addComponent(feedback); // show feedback 
message in feedback
component
}
};

This works ok.


Edi wrote:
 
 
 I have displayed a Wicket modal window(pop-up).
 
 it contains one text box with button.
 
 I have done date validation, if i give wrong date in text box, I have set
 the message in label.
 
 But label have not displayed.
 
 Please explain...
 

-- 
View this message in context: 
http://www.nabble.com/Wicket-Modal-Window-tf4937030.html#a14147964
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wicket Modal Window

2007-12-04 Thread michalb_cz

could you attach your code?
-- 
View this message in context: 
http://www.nabble.com/Wicket-Modal-Window-tf4937030.html#a14151291
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: wicket cluster on tomcat 6

2007-12-04 Thread michalb_cz

And the reason? Why back button won't work on cluster? 



Matej Knopp-2 wrote:
 
 Hi,
 
 at this point back button will not work across cluster (it's planned
 though). However, the failover for last accessed page should work
 anyway. If it doesn't, you have probably problem in your
 configuration.
 
 -Matej
 

-- 
View this message in context: 
http://www.nabble.com/wicket-cluster-on-tomcat-6-tf4942245.html#a14151756
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]