well, it is what it is

i think there has been some initiative to rename Button to SubmitButton to
better reflect what it does. but we didnt want to break the api. we can also
consider renaming Link to Callback, but that is too abstract.

you are more then welcome to update the wiki page, thanks.

-igor

On 8/27/07, Alex Objelean <[EMAIL PROTECTED]> wrote:
>
>
> Sorry for this endless topic, I think it has been discussed in other
> threads.... but what I'm trying to point is that it is a little bit
> confusing that input type='button' or button tag have to be associated
> with
> a Link.
>
> Since wicket-1.2.x branch was ok with the Button component used for the
> input type='button', I think that  the migration to wicket-1.3.x wiki page
> should mention about this aspect.
>
> Thank you!
> Alex.
>
>
> igor.vaynberg wrote:
> >
> > if its a <button type="submit" then yes :)
> >
> > if it isnt then its not really a Button, so use Link or SubmitLink
> >
> > -igor
> >
> >
> > On 8/27/07, Alex Objelean <[EMAIL PROTECTED]> wrote:
> >>
> >>
> >> Yes, indeed. The input type='submit' must be contained in a form (this
> is
> >> how
> >> html works), but is it mandatory to contain an input type='button' in a
> >> form?
> >>
> >> Alex.
> >>
> >>
> >> igor.vaynberg wrote:
> >> >
> >> > im pretty sure even in 1.2.6 you had to have a button inside a form.
> >> why
> >> > is
> >> > this so? because this is how html works, your input type="submit"
> have
> >> to
> >> > be
> >> > inside a form, and that is what Button is designed to represent.
> >> >
> >> > -igor
> >> >
> >> >
> >> > On 8/27/07, Alex Objelean <[EMAIL PROTECTED]> wrote:
> >> >>
> >> >>
> >> >> Yes, indeed. In my case I have a Button component which is not
> inside
> >> a
> >> >> Form.
> >> >> The workaround for this issue is to use a Link instead of Button.
> But
> >> I
> >> >> wonder why to force a button to be inside a form, since I do not
> need
> >> it
> >> >> to
> >> >> be in the form? This issue wasn't in the wicket-1.2.x branch.
> >> >>
> >> >> Thank you!
> >> >> Alex.
> >> >>
> >> >>
> >> >> igor.vaynberg wrote:
> >> >> >
> >> >> > unfortunately formcomponent:565 doesnt point to anything useful.
> >> mind
> >> >> > trying
> >> >> > again with the trunk build? it looks like formcomponent is trying
> to
> >> >> find
> >> >> > its form, do you have it inside a form?
> >> >> >
> >> >> > -igor
> >> >> >
> >> >> >
> >> >> > On 8/16/07, Alex Objelean <[EMAIL PROTECTED]> wrote:
> >> >> >>
> >> >> >>
> >> >> >> I've got the following exception when submit a form... (the same
> >> code
> >> >> >> worked
> >> >> >> fine with wicket-1.2.6)
> >> >> >>
> >> >> >> Any thougths?
> >> >> >>
> >> >> >> [10:39:10.071] ERROR [http-8080-Processor8] RequestCycle - Could
> >> not
> >> >> find
> >> >> >> Form parent for [MarkupContainer [Component id = editOrCancel,
> page
> >> =
> >> >> >> ro.isdc.centerparcs.dpa.ui.page.DPADashboardPage, path =
> >> >> >>
> >> >> >>
> >> >>
> >>
> 0:body:panel:actionDetailsContainer:actionDetails:panel:actionSummaryButtons:
> >> >> >> editOrCancel.Button,
> >> >> >> isVisible = true, isVersioned = false]]
> >> >> >> org.apache.wicket.WicketRuntimeException: Could not find Form
> >> parent
> >> >> for
> >> >> >> [MarkupContainer [Component id = editOrCancel, page =
> >> >> >> ro.isdc.centerparcs.dpa.ui.page.DPADashboardPage, path =
> >> >> >>
> >> >> >>
> >> >>
> >>
> 0:body:panel:actionDetailsContainer:actionDetails:panel:actionSummaryButtons:
> >> >> >> editOrCancel.Button,
> >> >> >> isVisible = true, isVersioned = false]]
> >> >> >> at
> >> >> >> org.apache.wicket.markup.html.form.FormComponent.getForm(
> >> >> >> FormComponent.java:565)
> >> >> >> at org.apache.wicket.markup.html.form.Form$2.component(Form.java
> >> :416)
> >> >> >> at
> >> >> >>
> >> org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java
> >> >> :820)
> >> >> >> at
> >> >> >>
> >> org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java
> >> >> :835)
> >> >> >> at
> >> >> >>
> >> org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java
> >> >> :835)
> >> >> >> at
> >> >> >>
> >> org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java
> >> >> :835)
> >> >> >> at
> >> >> >>
> >> org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java
> >> >> :835)
> >> >> >> at
> >> >> >>
> >> org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java
> >> >> :835)
> >> >> >> at
> >> >> >>
> >> org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java
> >> >> :835)
> >> >> >> at
> >> >> >> org.apache.wicket.markup.html.form.Form.findSubmittingButton(
> >> Form.java
> >> >> >> :407)
> >> >> >> at
> >> org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java
> >> >> :643)
> >> >> >> at
> >> >> >>
> >> >>
> >>
> ro.isdc.centerparcs.dpa.ui.component.AjaxDynamicFormSubmitBehavior.onEvent
> >> >> >> (AjaxDynamicFormSubmitBehavior.java:86)
> >> >> >> at
> >> >> >>
> >> >>
> >> org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java
> >> >> >> :163)
> >> >> >> at
> >> >> >> org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(
> >> >> >> AbstractDefaultAjaxBehavior.java:252)
> >> >> >> at
> >> >> >>
> >> >> >>
> >> >>
> >>
> org.apache.wicket.request.target.component.listener.BehaviorRequestTarget.processEvents
> >> >> >> (BehaviorRequestTarget.java:97)
> >> >> >> at
> >> >> >>
> >> org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(
> >> >> >> AbstractRequestCycleProcessor.java:90)
> >> >> >> at
> >> >> >> org.apache.wicket.RequestCycle.processEventsAndRespond(
> >> >> RequestCycle.java
> >> >> >> :1031)
> >> >> >> at org.apache.wicket.RequestCycle.step(RequestCycle.java:1107)
> >> >> >> at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1176)
> >> >> >> at org.apache.wicket.RequestCycle.request(RequestCycle.java:499)
> >> >> >> at
> >> >> >>
> >> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java
> >> >> :257)
> >> >> >> at
> >> >> >>
> >> >>
> >> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java
> >> >> >> :127)
> >> >> >> at
> >> >> >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> >> >> >> ApplicationFilterChain.java:202)
> >> >> >> at
> >> >> >> org.apache.catalina.core.ApplicationFilterChain.doFilter(
> >> >> >> ApplicationFilterChain.java:173)
> >> >> >> at
> >> >> >>
> >> org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(
> >> >> >> FilterChainProxy.java:264)
> >> >> >> at
> >> >> >> org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(
> >> >> >> FilterSecurityInterceptor.java:107)
> >> >> >> at
> >> >> >>
> org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(
> >> >> >> FilterSecurityInterceptor.java:72)
> >> >> >> at
> >> >> >>
> >> org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(
> >> >> >> FilterChainProxy.java:274)
> >> >> >> at
> >> >> >> org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(
> >> >> >> ExceptionTranslationFilter.java:110)
> >> >> >> at
> >> >> >>
> >> org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(
> >> >> >> FilterChainProxy.java:274)
> >> >> >> at
> >> >> >> org.acegisecurity.ui.AbstractProcessingFilter.doFilter(
> >> >> >> AbstractProcessingFilter.java:217)
> >> >> >> at
> >> >> >>
> >> org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(
> >> >> >> FilterChainProxy.java:274)
> >> >> >> at org.acegisecurity.ui.logout.LogoutFilter.doFilter(
> >> LogoutFilter.java
> >> >> >> :106)
> >> >> >> at
> >> >> >>
> >> org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(
> >> >> >> FilterChainProxy.java:274)
> >> >> >> at
> >> >> >>
> >> >>
> >> org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(
> >> >> >> HttpSessionContextIntegrationFilter.java:229)
> >> >> >> at
> >> >> >>
> >> org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(
> >> >> >> FilterChainProxy.java:274)
> >> >> >> at
> >> >> >> org.acegisecurity.util.FilterChainProxy.doFilter(
> >> FilterChainProxy.java
> >> >> >> :148)
> >> >> >> at
> >> >> >> org.acegisecurity.util.FilterToBeanProxy.doFilter(
> >> >> FilterToBeanProxy.java
> >> >> >> :98)
> >> >> >> at
> >> >> >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> >> >> >> ApplicationFilterChain.java:202)
> >> >> >> at
> >> >> >> org.apache.catalina.core.ApplicationFilterChain.doFilter(
> >> >> >> ApplicationFilterChain.java:173)
> >> >> >> at
> >> >> >> org.apache.catalina.core.StandardWrapperValve.invoke(
> >> >> >> StandardWrapperValve.java:213)
> >> >> >> at
> >> >> >> org.apache.catalina.core.StandardContextValve.invoke(
> >> >> >> StandardContextValve.java:178)
> >> >> >> at
> >> >> >> org.apache.catalina.core.StandardHostValve.invoke(
> >> >> StandardHostValve.java
> >> >> >> :126)
> >> >> >> at
> >> >> >> org.apache.catalina.valves.ErrorReportValve.invoke(
> >> >> ErrorReportValve.java
> >> >> >> :105)
> >> >> >> at
> >> >> >> org.apache.catalina.core.StandardEngineValve.invoke(
> >> >> >> StandardEngineValve.java:107)
> >> >> >> at
> >> >> >> org.apache.catalina.connector.CoyoteAdapter.service(
> >> CoyoteAdapter.java
> >> >> >> :148)
> >> >> >> at
> >> >> >> org.apache.coyote.http11.Http11Processor.process(
> >> Http11Processor.java
> >> >> :869)
> >> >> >> at
> >> >> >>
> >> >> >>
> >> >>
> >>
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection
> >> >> >> (Http11BaseProtocol.java:664)
> >> >> >> at
> >> >> >> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(
> >> >> >> PoolTcpEndpoint.java:527)
> >> >> >> at
> >> >> >> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(
> >> >> >> LeaderFollowerWorkerThread.java:80)
> >> >> >> at
> >> >> >> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> >> >> >> ThreadPool.java:684)
> >> >> >> at java.lang.Thread.run(Thread.java:595)
> >> >> >> --
> >> >> >> View this message in context:
> >> >> >>
> >> >>
> >>
> http://www.nabble.com/strang-bug-in-wicket-1.3.0-beta2-when-submitting-a-form-tf4278030.html#a12176834
> >> >> >> Sent from the Wicket - User mailing list archive at Nabble.com.
> >> >> >>
> >> >> >>
> >> >> >>
> >> ---------------------------------------------------------------------
> >> >> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> >> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >> >> >>
> >> >> >>
> >> >> >
> >> >> >
> >> >>
> >> >> --
> >> >> View this message in context:
> >> >>
> >>
> http://www.nabble.com/strang-bug-in-wicket-1.3.0-beta2-when-submitting-a-form-tf4278030.html#a12342883
> >> >> Sent from the Wicket - User mailing list archive at Nabble.com.
> >> >>
> >> >>
> >> >>
> ---------------------------------------------------------------------
> >> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >> >>
> >> >>
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/strang-bug-in-wicket-1.3.0-beta2-when-submitting-a-form-tf4278030.html#a12356515
> >> Sent from the Wicket - User mailing list archive at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/strang-bug-in-wicket-1.3.0-beta2-when-submitting-a-form-tf4278030.html#a12362461
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to