Re: Dynamically generating an img tag

2008-12-27 Thread Jonathan Locke


you might also look at this:
http://www.codecommit.com/blog/java/a-wicket-api-for-google-charts


Cristina wrote:
> 
> Hi,
> 
> I'm trying to generate an img tag pointing to a Google chart at
> http://chart.apis.google.com/. I'm getting the chart URL as a string and I
> need to generate the img tag in order to display it as an image.
> 
> I'm trying to use a Label, like:
> 
> HTML:
> 
> img tag goes here
> 
> Java:
> 
> // prefix and sufix hold the start and end of the img tag
> String imgTag = prefix + getImgURL() + sufix;
> add(new Label("imgDisplay", imgTag));
> 
> Problem is, < > and " are not interpreted as markup delimiters, but as
> normal characters, so all I've got is the URL displayed as a literal where
> the image should be displayed.
> 
> Is there a simple way to do something like this?
> 
> Thanks so much,
> 
> Cristina
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Dynamically-generating-an-img-tag-tp21190259p21190506.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Dynamically generating an img tag

2008-12-27 Thread Jan Kriesten

Hi Cristina,

> Java:
> 
> // prefix and sufix hold the start and end of the img tag
> String imgTag = prefix + getImgURL() + sufix;
> add(new Label("imgDisplay", imgTag));

try:

add(new Label("imgDisplay", imgTag).setEscapeModelStrings(false));

Best regards, --- Jan.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Dynamically generating an img tag

2008-12-27 Thread Cristina

Hi,

I'm trying to generate an img tag pointing to a Google chart at
http://chart.apis.google.com/. I'm getting the chart URL as a string and I
need to generate the img tag in order to display it as an image.

I'm trying to use a Label, like:

HTML:

img tag goes here

Java:

// prefix and sufix hold the start and end of the img tag
String imgTag = prefix + getImgURL() + sufix;
add(new Label("imgDisplay", imgTag));

Problem is, < > and " are not interpreted as markup delimiters, but as
normal characters, so all I've got is the URL displayed as a literal where
the image should be displayed.

Is there a simple way to do something like this?

Thanks so much,

Cristina

-- 
View this message in context: 
http://www.nabble.com/Dynamically-generating-an-img-tag-tp21190259p21190259.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: [OT] wicket users around the world

2008-12-27 Thread Swaroop Belur
Bengaluru (formerly Bangalore) , India

Used it for 1.5 yrs on a project

-swaroop belur



On Fri, Dec 12, 2008 at 12:27 AM, francisco treacy <
francisco.tre...@gmail.com> wrote:

> to know a little bit more of our great (and vast) community, i was
> just wondering if you're keen on sharing where you come from and/or
> where you work with wicket...
>
> for instance, here argentinian/belgian working with wicket in antibes,
> france
>
> francisco
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Modal Window height

2008-12-27 Thread Matej Knopp
Hi,

try modalwindow.setUseInitialHeight(false);

-Matej

On Sat, Dec 27, 2008 at 9:39 PM, David Ojeda  wrote:
> Hello all,
>
> I am using a modal window with a panel inside. I would like the modal window
> to have the same height of my panel, so I was wondering if anyone has been
> able to do this. Apparently, I can only set the height to specific
> int-values, rather than "auto".
> I am using wicket and wicket-extensions 1.3.5
>
> Best regards,
> David
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Using the org.apache.wicket.jmx MBeans with WebSphere

2008-12-27 Thread Phil Grimm
Steve,
I don't know that much about Wicket JMX either, but...

I just added wicket-jmx-1.4-rc1.jar to my CLASSPATH and the Wicket MBean
shows up in  jconsole.

I also add the -Dcom.sun.management.jmxremote option to the JVM startup.

Phil

On Sat, Dec 27, 2008 at 4:33 PM, shetc  wrote:

>
> Hi All,
>
> I'm relatively new to using JMX and I would very much like to use the
> Wicket
> MBeans with my WebSphere 6.1 Wicket application. I know how to use Spring
> to
> register my own simple MBeans with WebSphere, but can't figure out how to
> register the Wicket ones. For example, if I try to register
> org.apache.wicket.jmx.Application then I get a Spring
> BeanInstantiationException, which is caused by not having a default
> constructor in that MBean. So I looked in the Application class thinking
> that I would extend it by adding the missing default constructor. That's
> when I realized that the main constructor signature wants an instance of
> the
> Wicket Application class passed to it. And that's where I got stuck. Does
> anyone have some advice on what it is that I'm doing wrong?
>
> Thanks,
> Steve
> --
> View this message in context:
> http://www.nabble.com/Using-the-org.apache.wicket.jmx-MBeans-with-WebSphere-tp21188288p21188288.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Phil Grimm
Mobile: (858) 335-3426
Skype: philgrimm336


Modal Window height

2008-12-27 Thread David Ojeda
Hello all,

I am using a modal window with a panel inside. I would like the modal window
to have the same height of my panel, so I was wondering if anyone has been
able to do this. Apparently, I can only set the height to specific
int-values, rather than "auto".
I am using wicket and wicket-extensions 1.3.5

Best regards,
David


Using the org.apache.wicket.jmx MBeans with WebSphere

2008-12-27 Thread shetc

Hi All,

I'm relatively new to using JMX and I would very much like to use the Wicket
MBeans with my WebSphere 6.1 Wicket application. I know how to use Spring to
register my own simple MBeans with WebSphere, but can't figure out how to
register the Wicket ones. For example, if I try to register
org.apache.wicket.jmx.Application then I get a Spring
BeanInstantiationException, which is caused by not having a default
constructor in that MBean. So I looked in the Application class thinking
that I would extend it by adding the missing default constructor. That's
when I realized that the main constructor signature wants an instance of the
Wicket Application class passed to it. And that's where I got stuck. Does
anyone have some advice on what it is that I'm doing wrong?

Thanks,
Steve
-- 
View this message in context: 
http://www.nabble.com/Using-the-org.apache.wicket.jmx-MBeans-with-WebSphere-tp21188288p21188288.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: [OT] wicket users around the world

2008-12-27 Thread Piotr Jakubowski

Polish guy working in Denmark :) 
-- 
View this message in context: 
http://www.nabble.com/-OT--wicket-users-around-the-world-tp20962108p21188237.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: [Announce] wicketstuff-push ported to use wicket 1.4 jetty 6.1.14

2008-12-27 Thread Jeremy Thomerson
Rodolfo - why is there still a wicketstuff-push folder in trunk [1]?  I
didn't notice until today when a user asked a question about it.

Was it an oversight, or is it something different?

Just Curious and Confused,

Jeremy Thomerson
http://www.wickettraining.com

On Tue, Dec 9, 2008 at 6:46 AM, Rodolfo Hansen  wrote:

> Hi, a new version of wicketstuff-push was moved to the wicketstuff-core
> group of projects, as push-parent (as was specified in the wiki)
>
> A couple of new things were done:
>
> It is no longer compatible with java 1.4, is built for wicket 1.4 and
> requires jetty 6.1.14.
> The dependencies on dojo have been reduced even further, so this package is
> basically just a cometd client/server project for wicket.
> The RemoveListener is now working and is extended with a new type of
> WicketRemoveListener that allows access to the Wicket Application Singleton
> and the session that registered the singleton (i thought of a couple of
> ways
> to register them, and decided to choose the one present in the code for it)
>
> Please let me know of any suggestions, ideas for the proj.
>


Re: [OT] wicket users around the world

2008-12-27 Thread Doug Leeper

St. Charles, IL (an hour west of Chicago)

First created two new Wicket apps for production and now migrating existing
apps to wicket.
-- 
View this message in context: 
http://www.nabble.com/-OT--wicket-users-around-the-world-tp20962108p21186824.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org




Re: how to start wicketstuff-core's GMAP2

2008-12-27 Thread Jeremy Thomerson
The one in wicketstuff-core (push-parent/push-examples) works - use same
instructions.  I don't know anything about those projects (or why there is
one in core and one above it).  But the one in core works.


-- 
Jeremy Thomerson
http://www.wickettraining.com


On Sat, Dec 27, 2008 at 12:30 AM, 新希望软件 -- 俞宏伟  wrote:

> now, the GMAP2 example works, thanks.
>
> but i found that wicketstuff-push example can not works. i found that the
> web.xml file of wicketstuff-push has some problem.
>
> the web.xml content in example war file as follow:
>
> 
> >  > 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd";>
> > 
> > wicketstuff-push-examples
> > 
> > index.html
> > index.htm
> > index.jsp
> > default.html
> > default.htm
> > default.jsp
> > 
> > 
>
>
>
> On Sat, Dec 27, 2008 at 02:45, Jeremy Thomerson
> wrote:
>
> > Do you have maven installed?  If so, it should just be like this:
> >
> > svn co
> >
> >
> https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core
> > cd wicketstuff-core
> > mvn -N clean install
> > cd gmap2-parent
> > mvn clean install
> > cd gmap2-examples
> > mvn jetty:run
> >
> > Now browse http://localhost:8080/gmap2-examples/
> >
> > Notice that in the first "mvn clean install" there is "-N" - this is
> > non-recursive so you only build the parent wicketstuff-core POM module
> and
> > not all the children.
> >
> > Also note that GMap2 (and all wicketstuff-core projects) are currently
> > built
> > against Wicket 1.4-SNAPSHOT.  You may have to look to the old 1.3.x
> branch
> > in wicket stuff and experiment on your own to get a 1.3.5 version.  Or
> just
> > change the pom and compile against 1.3.5, and fix any compile errors
> > (probably mostly generics).
> > Hope this helps.  The other option (if you don't have Maven) is to get
> the
> > latest war from
> >
> >
> http://wicketstuff.org/maven/repository/org/wicketstuff/gmap2-examples/1.4-SNAPSHOT/
> >
> > --
> > Jeremy Thomerson
> > http://www.wickettraining.com
> >
> > On Fri, Dec 26, 2008 at 7:27 AM, 新希望软件 -- 俞宏伟 
> > wrote:
> >
> > > First Sorry for my poor english.
> > >
> > > I have checked out wicketstuff-core source code, but i do not know how
> to
> > > generate wicket-core jars and example war.
> > >
> > > I want to run GMAP2 example, and then want to add GMAP2 to my wicket
> > > project(now using wicket 1.3.5).
> > >
> > > thanks.
> > >
> >
>
>
>
> --
> 新希望软件---俞宏伟
> Addr:宁波市人民路645弄312号(日湖国贸)1304室
> Site:http://www.nhsoft.cn
> gtalk:nhsoft@gmail.com
> Tel: 0574-87280538
> Fax: 0574-27825902
> Mobile:13780081921
>


Re: WebPage for serving binary image data

2008-12-27 Thread Jeremy Thomerson
Although I haven't tested this theory, I used the ThreadLocal because I am
fairly sure that the "shared" resources are shared across threads (multiple
simultaneous requests) without synchronization.  Therefore, you need to keep
the parameters between method invocations, but can't keep it in a normal
field because multiple requests could be reading / writing them
simultaneously.

That code was not the best code - but it's a workaround because the
parameters are blown away before you are in your method that creates the
image.


-- 
Jeremy Thomerson
http://www.wickettraining.com


On Sat, Dec 27, 2008 at 1:31 AM, smallufo  wrote:

> Thank you, it works !
> Though I am not sure why ThreadLocal is needed here ...
>
> Anyway , the solution is much pretty than WebPage.
>
> BR
> --
>
>
>
> 2008/12/27 Jeremy Thomerson 
>
> > It's not a WebPage because you're not serving a page - it is a mounted
> > resource.  Why do you want to force it to be a page?  It's a bookmarkable
> > resource - which is what you're serving.  The type is set by
> > DynamicImageResource - look in getResourceStream or getResourceState.
> >
> > On Fri, Dec 26, 2008 at 1:51 PM, smallufo  wrote:
> >
> > > Hi ,
> > > thank you for replying.
> > >
> > >
> > > 2008/12/26 Jeremy Thomerson 
> > > Then, you can include it in your page:
> > > JAVA: add(new Image("img", new
> > > ResourceReference( WicketApplication.IMAGE_KEY)));
> > > HTML: 
> > >
> > >
> > >
> > > >
> > > > http://localhost:8080/foo
> > > > http://localhost:8080/foo?text=fff&width=200
> > > >
> > > >
> > >
> > >
> > >
> > > My question is ...
> > > is "/foo" a bookmarkable mounted WebPage ?
> > > If it is , where did you set the ContentType to "image/png" ? I cannot
> > find
> > > such code ...
> > >
> > > If it is not a WebPage , how should I accomplish this by a WebPage ?
> > > I don't need the dynamic-generated image to be included in the
> WebPage's
> > >  tag.
> > >
> > > BR
> > > --
> > > smallufo
> > >
> >
> >
> >
> > --
> > Jeremy Thomerson
> > http://www.wickettraining.com
> >
>


bug in firefox in file uploads?

2008-12-27 Thread Jonathan Locke


i get the stack trace below when uploading files in 1.4-rc1
it only happens in firefox. safari seems to be fine.
is this a known problem or should i file a bug?

thanks,

  jon

WARN  - Form   - Upload failed: Processing of
multipart/form-data request failed. null
org.apache.wicket.util.upload.FileUploadException: Processing of
multipart/form-data request failed. null
at
org.apache.wicket.util.upload.FileUploadBase.parseRequest(FileUploadBase.java:360)
at
org.apache.wicket.util.upload.ServletFileUpload.parseRequest(ServletFileUpload.java:115)
at
org.apache.wicket.protocol.http.servlet.MultipartServletWebRequest.(MultipartServletWebRequest.java:133)
at
org.apache.wicket.protocol.http.servlet.ServletWebRequest.newMultipartWebRequest(ServletWebRequest.java:476)
at 
org.apache.wicket.markup.html.form.Form.handleMultiPart(Form.java:1577)
at 
org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:839)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:182)
at
org.apache.wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:73)
at
org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:91)
at
org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1191)
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1270)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1371)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:498)
at
org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:455)
at
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:288)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)
at 
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at 
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at 
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
at 
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
at org.mortbay.jetty.Server.handle(Server.java:295)
at 
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:503)
at
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:841)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:639)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:210)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:379)
at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:361)
at
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
Caused by: org.mortbay.jetty.EofException
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:300)
at 
org.mortbay.jetty.HttpParser$Input.blockForContent(HttpParser.java:944)
at org.mortbay.jetty.HttpParser$Input.read(HttpParser.java:905)
at
org.apache.wicket.util.upload.MultipartFormInputStream.readBodyData(MultipartFormInputStream.java:553)
at
org.apache.wicket.util.upload.FileUploadBase.parseRequest(FileUploadBase.java:337)
... 33 more


-- 
View this message in context: 
http://www.nabble.com/bug-in-firefox-in-file-uploads--tp21186555p21186555.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Problem with inline javascript

2008-12-27 Thread Jeremy Thomerson
How are you doing the auto-complete?  AutoCompleteTextField uses the
following code, which renders in the head of the page - not inline.  You
could / should use it in your own behaviors as well.

response.renderOnDomReadyJavascript("your js");

-- 
Jeremy Thomerson
http://www.wickettraining.com


On Sat, Dec 27, 2008 at 12:35 PM, Piotr Jakubowski  wrote:

>
> Hi!
> Is there any way to make Wicket use unobtrusive way to attach ajax
> behaviors
> to html elements instead of putting them inline into html?
>
> I have a problem as I have a TextField to input search pattern and then I
> use Ajax to show popUp with search results. The thing is the search results
> always updates the search results list when the key is being pressed in the
> TextField. I wanted to add the keyboard navigation, and therefore disable
> the update behavior while the keys that are pressed are Arrows or Enter.
> Unfortunately when the Ajax Update thing is inline in html as onkeyup
> attribute - the only way to do that in jQuery is to remove this attribute.
> Unbind and stuff does not work.
>
> I hope that you understand what I want to do :) Maybe you have some
> suggestions on how to do that.
>
> Thanks in advance ;)
> --
> View this message in context:
> http://www.nabble.com/Problem-with-inline-javascript-tp21186429p21186429.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Problem with inline javascript

2008-12-27 Thread Piotr Jakubowski

Hi!
Is there any way to make Wicket use unobtrusive way to attach ajax behaviors
to html elements instead of putting them inline into html?

I have a problem as I have a TextField to input search pattern and then I
use Ajax to show popUp with search results. The thing is the search results
always updates the search results list when the key is being pressed in the
TextField. I wanted to add the keyboard navigation, and therefore disable
the update behavior while the keys that are pressed are Arrows or Enter.
Unfortunately when the Ajax Update thing is inline in html as onkeyup
attribute - the only way to do that in jQuery is to remove this attribute.
Unbind and stuff does not work.

I hope that you understand what I want to do :) Maybe you have some
suggestions on how to do that.

Thanks in advance ;)
-- 
View this message in context: 
http://www.nabble.com/Problem-with-inline-javascript-tp21186429p21186429.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Modal window not appearing in IE

2008-12-27 Thread 新希望软件 -- 俞宏伟
Here is my modalwindow code:

final ModalWindow mwCreateOrder = new ModalWindow("mwCreateOrder");
> add(mwCreateOrder);
>
> final CreateOrderPanel createOrderPanel = new
> CreateOrderPanel(mwCreateOrder, mwCreateOrder.getContentId(),
> shop.getShopNum());
> mwCreateOrder.setContent(createOrderPanel);
> mwCreateOrder.setTitle("发起新的团购订单");
> mwCreateOrder.setCookieName("mwCreateOrder");
> mwCreateOrder.setWidthUnit("em");
> mwCreateOrder.setHeightUnit("em");
> mwCreateOrder.setInitialWidth(460);
> mwCreateOrder.setInitialHeight(500);
>
> mwCreateOrder.setCloseButtonCallback(new
> ModalWindow.CloseButtonCallback() {
>
> public boolean onCloseButtonClicked(AjaxRequestTarget target) {
> return true;
> }
> });
>
> mwCreateOrder.setWindowClosedCallback(new
> ModalWindow.WindowClosedCallback() {
>
> public void onClose(AjaxRequestTarget target) {
> if (createOrderPanel.isModalResult()) {
> setResponsePage(page);
> }
> }
> });
>
> AjaxLink lnkCreateOrder = new AjaxLink("toCreateOrder") {
>
> @Override
> public void onClick(AjaxRequestTarget target) {
> mwCreateOrder.show(target);
> }
> };
> lnkCreateOrder.setVisible(currentGroup != null);
> add(lnkCreateOrder);
>

html code

�_始�F��
> 




On Sat, Dec 27, 2008 at 21:16, 新希望软件 -- 俞宏伟  wrote:

> I hava same problem.
>
> watch wicket ajax debug windows, response content is empty in IE 6
>
> *INFO: *Received ajax response (69 characters)
>> *INFO: *
>> 
>> *INFO: *Response parsed. Now invoking steps...
>>
>
> but response content is correct in FireFox 3.x.
>
> when debug server side code, i found that  the ajax link action code
> invoked without error message print both IE and FF.
>
>
>
>
>
>
> On Tue, Dec 23, 2008 at 03:00, ecornett wrote:
>
>>
>> Here is my Ajax debug output:
>>
>> INFO: focus set on linkida
>> INFO:
>> INFO: Initiating Ajax POST request on
>>
>> ?wicket:interface=:3:reqTabs:panel:insurance-edit-form:primaryBillingPanel:billingRecord-edit-form:insuranceLookupPanel:insurance-lookup:lookup-form:menuBar:menubarlinks:0:menuitemul:menuitemlinks:1:linkid:1:IActivePageBehaviorListener:0:&wicket:ignoreIfNotActive=true&random=0.8349472295319197
>> INFO: Invoking pre-call handler(s)...
>> INFO: Received ajax response (11295 characters)
>> INFO:
>> > encoding="wicket1" >> >
>> ERROR: Error while parsing response: Object required
>> INFO: Invoking post-call handler(s)...
>> INFO: Invoking failure handler(s)...
>> INFO: focus removed from linkida
>>
>> I found this link to be somewhat helpful, but it didn't solve my problem:
>>
>> https://issues.apache.org/jira/browse/WICKET-527?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
>>
>>
>>
>> Martijn Dashorst wrote:
>> >
>> > It would help if you post some output of for example the
>> > wicket-ajax-debug window, or the firefox console. With the information
>> > you have given thus far we can't help you.
>> >
>> > Martijn
>> >
>> > On Mon, Dec 15, 2008 at 10:51 PM, ecornett > >
>> > wrote:
>> >>
>> >> I have searched everywhere for an answer to this Wicket question with
>> no
>> >> luck.
>> >>
>> >>
>> >> Martijn Dashorst wrote:
>> >>>
>> >>> As you come through nabble, I trust you have read and understood the
>> >>> text that is shown prominently above the forum?
>> >>>
>>  Before posting, please read "How to ask questions the smart
>>  way" [1] and answer these questions for yourself:
>> 
>>  * Did you check out our live examples
>>  * read our wiki
>>  * search using google
>>  If these fail to provide an answer, posting to the users list is
>>  appropriate. Be sure to include full stack traces and code. Did
>>  we mention that you read "How to ask questions the smart way" [1]
>>  before posting?
>> >>>
>> >>> Martijn
>> >>>
>> >>> [1] 
>> >>> http://www.catb.org/~esr/faqs/smart-questions.html
>> >>>
>> >>> On Mon, Dec 15, 2008 at 7:18 PM, ecornett <
>> e.corn...@alumni.utexas.net>
>> >>> wrote:
>> 
>>  Has anyone else had trouble with modal windows appearing in Firefox
>> but
>>  not
>>  IE and if so, what is a good solution?  I can go into more details if
>>  necessary.
>>  --
>>  View this message in context:
>> 
>> http://www.nabble.com/Modal-window-not-appearing-in-IE-tp21018938p21018938.html
>>  Sent from the Wicket - User mailing list archive at Nabble.com.
>> 
>> 
>>  -
>>  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>  For additional commands, e-mail: users-h...@wicket.apache.org
>> 
>> 
>> >>>
>> >>>
>> >>>
>> >>

Re: Modal window not appearing in IE

2008-12-27 Thread 新希望软件 -- 俞宏伟
I hava same problem.

watch wicket ajax debug windows, response content is empty in IE 6

*INFO: *Received ajax response (69 characters)
> *INFO: *
> 
> *INFO: *Response parsed. Now invoking steps...
>

but response content is correct in FireFox 3.x.

when debug server side code, i found that  the ajax link action code invoked
without error message print both IE and FF.





On Tue, Dec 23, 2008 at 03:00, ecornett  wrote:

>
> Here is my Ajax debug output:
>
> INFO: focus set on linkida
> INFO:
> INFO: Initiating Ajax POST request on
>
> ?wicket:interface=:3:reqTabs:panel:insurance-edit-form:primaryBillingPanel:billingRecord-edit-form:insuranceLookupPanel:insurance-lookup:lookup-form:menuBar:menubarlinks:0:menuitemul:menuitemlinks:1:linkid:1:IActivePageBehaviorListener:0:&wicket:ignoreIfNotActive=true&random=0.8349472295319197
> INFO: Invoking pre-call handler(s)...
> INFO: Received ajax response (11295 characters)
> INFO:
>  encoding="wicket1" > >
> ERROR: Error while parsing response: Object required
> INFO: Invoking post-call handler(s)...
> INFO: Invoking failure handler(s)...
> INFO: focus removed from linkida
>
> I found this link to be somewhat helpful, but it didn't solve my problem:
>
> https://issues.apache.org/jira/browse/WICKET-527?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
>
>
>
> Martijn Dashorst wrote:
> >
> > It would help if you post some output of for example the
> > wicket-ajax-debug window, or the firefox console. With the information
> > you have given thus far we can't help you.
> >
> > Martijn
> >
> > On Mon, Dec 15, 2008 at 10:51 PM, ecornett 
> > wrote:
> >>
> >> I have searched everywhere for an answer to this Wicket question with no
> >> luck.
> >>
> >>
> >> Martijn Dashorst wrote:
> >>>
> >>> As you come through nabble, I trust you have read and understood the
> >>> text that is shown prominently above the forum?
> >>>
>  Before posting, please read "How to ask questions the smart
>  way" [1] and answer these questions for yourself:
> 
>  * Did you check out our live examples
>  * read our wiki
>  * search using google
>  If these fail to provide an answer, posting to the users list is
>  appropriate. Be sure to include full stack traces and code. Did
>  we mention that you read "How to ask questions the smart way" [1]
>  before posting?
> >>>
> >>> Martijn
> >>>
> >>> [1] 
> >>> http://www.catb.org/~esr/faqs/smart-questions.html
> >>>
> >>> On Mon, Dec 15, 2008 at 7:18 PM, ecornett  >
> >>> wrote:
> 
>  Has anyone else had trouble with modal windows appearing in Firefox
> but
>  not
>  IE and if so, what is a good solution?  I can go into more details if
>  necessary.
>  --
>  View this message in context:
> 
> http://www.nabble.com/Modal-window-not-appearing-in-IE-tp21018938p21018938.html
>  Sent from the Wicket - User mailing list archive at Nabble.com.
> 
> 
>  -
>  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>  For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 
> >>>
> >>>
> >>>
> >>> --
> >>> Become a Wicket expert, learn from the best: http://wicketinaction.com
> >>> Apache Wicket 1.3.4 is released
> >>> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
> >>>
> >>> -
> >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >>> For additional commands, e-mail: users-h...@wicket.apache.org
> >>>
> >>>
> >>>
> >>
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/Modal-window-not-appearing-in-IE-tp21018938p21022867.html
> >> Sent from the Wicket - User mailing list archive at Nabble.com.
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >> For additional commands, e-mail: users-h...@wicket.apache.org
> >>
> >>
> >
> >
> >
> > --
> > Become a Wicket expert, learn from the best: http://wicketinaction.com
> > Apache Wicket 1.3.4 is released
> > Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Modal-window-not-appearing-in-IE-tp21018938p21133122.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
新希望软件---俞宏伟
Addr:宁波市人民路645弄312号(日湖国贸)1304室
Site:http://www.nhsoft.cn
gtalk:nhsoft.

Re: Confusion with placeholder tags

2008-12-27 Thread David Ojeda
Thanks Martijn,
I had a mixup between those methods.

On Sat, Dec 27, 2008 at 10:45 AM, Martijn Dashorst <
martijn.dasho...@gmail.com> wrote:

> setOutputMarkupPlaceholderTag is for ajax refreshes. See
> setRenderBodyOnly() or use  in your markup.
>
> Martijn
>
> On Fri, Dec 26, 2008 at 4:02 PM, David Ojeda 
> wrote:
> > Hello all,
> >
> > I am trying to implement a panel with a table whose tr's are Fragments. I
> am
> > using
> > ListView in order to generate several table rows, but my rendered
> > table has some markup that I wish to eliminate:
> >
> > 1.- the  tag, which I thought would be
> >  eliminated when calling .setOutputMarkupPlaceholderTag(false)
> > 2.- the  tag. I do not understand why
> >  this tag appears outside the  tag. I have tried
> >  setOutputMarkupPlaceholderTag in the ListView, but it doesn't work
> >  either.
> >
> > Clearly, there is something about placeholder tags that I do not
> > understand at all. Could anyone please help me with this?
> >
> > Any other suggestion on how to implement this table is welcome.
> >
> > Thanks a lot.
> >
> >
> >
> > Here is my panel code/markup and the rendered panel
> > :
> > ** Source Code:
> > MyPanel.html:
> > 
> > http://www.w3.org/1999/xhtml"; xmlns:wicket="
> > http://wicket.sourceforge.net/";>
> > 
> >
> >
> >
> >
> >
> >
> >
> >  
> >  menu goes here
> >  
> >
> >
> >
> >
> >
> >
> >
> > 
> > >style="height: 26px; width =157px; vertical-align: middle;
> > padding-left: 25px; text-align: left; background:
> > url('images/menu-inicial.gif'); background-repeat: no-repeat;"
> >onmouseover="this.style.color='#c32127'"
> >class="tbmenuitem">
> >
> > >   onmouseout="this.style.color=''"
> >   onmouseover="this.style.color='#c32127'"
> >   class="tbmenuitem"
> >   href="#">
> >   caption
> >
> >
> > 
> > 
> >
> > MyPanel.java:
> > public class MyPanel extends Panel {
> >
> >
> >public MyPanel(String id, IModel model) {
> >super(id,model);
> >changeableComponent = contentPanel;
> >
> >Arrays.asList(new String[] {
> >"item 1", "item 2" })
> >ListView lview = new ListView("menuitemrv", model) {
> >
> >//private int counter = 0;
> >
> >@Override
> >protected void populateItem(ListItem listitem) {
> >final String menuitemstr =  (String)
> > listitem.getModelObject();
> >listitem.add(new
> > MenuItemFragment("menuitem","menuitemfragment", new Model(menuitemstr)));
> >
> >}
> >};
> >
> >lview.setOutputMarkupPlaceholderTag(false);
> >add(lview);
> >
> >}
> >
> >class MenuItemFragment extends Fragment {
> >
> >
> >public MenuItemFragment(String id, String markupId, IModel model)
> {
> >super(id, markupId, MainMenuPanel.this, model);
> >
> >AjaxFallbackLink link = new AjaxFallbackLink("link") {
> >@Override
> >public void onClick(AjaxRequestTarget target) {
> >}
> >};
> >
> >link.add(new
> > Label("caption",model).setOutputMarkupPlaceholderTag(false));
> >
> >add(link);
> >}
> >
> >}
> >
> > }
> >
> >
> > ** Rendered panel:
> > 
> >
> >
> >
> >
> >  
> >  
> >  
> >  
> >  
> >  
> >
> >
> > > style="background: transparent url(images/menu-inicial.gif) no-repeat
> scroll
> > 0% 0%; height: 26px; vertical-align: middle; padding-left: 25px;
> text-align:
> > left; -moz-background-clip: -moz-initial; -moz-background-origin:
> > -moz-initial; -moz-background-inline-policy: -moz-initial;"
> > onmouseout="this.style.color=''">
> >
> > > onmouseout="this.style.color=''" onclick="var
> >
> wcall=wicketAjaxGet('?wicket:interface=:1:aswborder:mainmenu:menuitemrv:0:menuitem:link::IBehaviorListener:0:',null,null,
> > function() {return Wicket.$('link1') != null;}.bind(this));return
> !wcall;"
> > class="tbmenuitem" wicket:id="link"
> >
> href="?wicket:interface=:1:aswborder:mainmenu:menuitemrv:0:menuitem:link::ILinkListener::">
> >
> >   item 1
> >
> >
> >
> >  
> >  
> >
> >  
> >
> > > style="background: transparent url(images/menu-inicial.gif) no-repeat
> scroll
> > 0% 0%; height: 26px; vertica