On Sat, Mar 29, 2008 at 8:04 PM, James Carman
[EMAIL PROTECTED] wrote:
So, I think you just have it backwards. The
OpenEntityManagerInViewFilter should be mapped before the
WicketFilter.
i dont know if my english is broken or what, but i believe that is
exactly what ive been saying all
I appreciate your reply. The problem I'm having is that I really need a way
to have a component that basically adds this JavaScript as a link:
lt;a href=javascript:playFile('linktofilehere.mp3')gt;Play [1]lt;/agt;
(The anythinghere.mp3 part would be dynamically generated depending on what
I
Hi Nino
Hmm that could break the flow is my guess(as it would force the url back
to whatever was set in the iframe attribute), i'd actually say that it
were whatever was contained withing the iframe responsability to use
keepalives...
Sorry, but i couldn't see the conclusion here. Do you mean
You could use a WebMarkupContainer with a an attributemodifier to
generate the href part:
add(new WebMarkupContainer(link).add(new
SimpleAttributeModifier(href,javascript:playFile(.)));
and in your html a wicket:id=linkfoo/a
The downside of that is that you won't be able to update a server
The problem is that it could be pretty big and then it isnt kept in
memory but streamed to disk. Then you also can do that by getting the
stream and stream it to your wanted location.
Maybe wicket could see it was connected to a byt[] and then autoi
dump, but i dont know if that is a good
Hello all,
The Button in wicket expects the html markup input
I want to create, if there is none, a component for the button ... markup.
My aim is to get a markup like the following:
button id=dinamiButton style=background:transparent;
border-style:none; cursor:pointer;
table width=100%
Sorry, my bad. I made a typo earlier what may have caused the confusion:
On Sat, Mar 29, 2008 at 7:15 AM, lars vonk [EMAIL PROTECTED] wrote:
IIRC you should put the OpenEntityManagerInViewFilter definition in the
filter-mapping after the WicketFilter otherwise the WicketFilter will come
On Sun, Mar 30, 2008 at 6:01 AM, lars vonk [EMAIL PROTECTED] wrote:
IIRC you should put the OpenEntityManagerInViewFilter definition in the
filter-mapping after the WicketFilter otherwise the WicketFilter will come
first.
I of course meant *before the WicketFilter*, because like I
I admit, the word stomped is probably a bit exaggerated.
But in my case the backing model is actually a JPA class, so if wicket
picked it up by default, tad it would be written directly to db..
Johan Compagner wrote:
The problem is that it could be pretty big and then it isnt kept in
Hi,
I tried the Modal Page example in the Wicket examples
http://wicketstuff.org/wicket13/ajax/modal-window.1
with IE. When I pressed Show modal dialog with a page and in the
modal window press either OK or Cancel the result is not shown on the
main page and there is no possibility to press
Hi,
I am using behaviors for beforeRender and onRender to add html markups.
private void init() {
add(HeaderContributor.forCss(MyButton.class, MyButton.css));
add(new AbstractBehavior() {
private static final long serialVersionUID = 1L;
@Override
also, the restriction should not be there...you should be able to
attach Button to [button type=submit] without problems...
-igor
On Sun, Mar 30, 2008 at 10:01 AM, Igor Vaynberg [EMAIL PROTECTED] wrote:
do you want this button to submit the form?
-igor
On Sun, Mar 30, 2008 at 2:56 AM,
I don't see why it couldn't, WML is XML based so you could create your own
components. You should check out the page on the Wiki for wicket and mobile
devices. Do you have a strict requirement that it needs to be WML or just
for mobile devices?
http://cwiki.apache.org/WICKET/mobile-devices.html
For your first question - yes
I found out that ImageButton must have input as tag.
As for my problem, I found a nicer solution that using CSS I can manipulate
the image.
(I will put here the link tomorrow when I'll be back at work).
As for my original question, I would still love a kick start of
Hi Nino Saturnino Martinez Vazquez Wael:
It depends. If it's okay to go to the url you specify in the iframe on
repainting, it will work. If whatever happens in the iframe is part of a
flow, it could break it (but it depends on a lot of things) like how
does the other application handle
I have a link like this:
a wicket:id=linkimg src=face.png//a
When link.isEnable() == false, I need to add style attribute to the img
tag. Is it possible to do this without turning the img into a child
component of the link?
the way sessions timeout is a duration of time in which there are no
requests. so if you add a bit of javascript (ajax) that makes a server
side call every 5 minutes, the session will never timeout as long as
the webpage is open in the browser, because the server sees a request
come in every 5
new image(...) {
oncomponenttag(tag) {
if (link.isenabled()==false) { tag.put(class,foo); }
}
}
-igor
On Sun, Mar 30, 2008 at 11:27 AM, Matthew Young [EMAIL PROTECTED] wrote:
I have a link like this:
a wicket:id=linkimg src=face.png//a
When link.isEnable() == false, I need to
I forgot to mention: the link is created by other people's code. I can't
change the template: I can't put wicket:id in the img tag.
new image(...) {
oncomponenttag(tag) {
if (link.isenabled()==false) { tag.put(class,foo); }
So how would this work?
new
How does wicket find such resource, e.g. as follows?
link href=style/my.css type=text/css rel=stylesheet /
I found this only works if I mount my pages with
mount(/pages, PackageName.forClass(Home.class));
Otherwise, I need to specify absolute URL. This is fine. However, the
subsequent
Thanks Igor for your reply.
Only for check if i'm right - the preselectionpage gets a javascript which
makes a call to server so that session is always uptodate. When the
bookingpage is displayed (click on button in preselection) the server-side
call will not be done. So its timing out.
I
On the Java side, which Components can you use if you have HTML nested like
this:
h3
.. Text
/h3
For the h3 if I use a Label, I cannot add a Link as child because it is not
a MarkupContainer.
--
View this message in context:
It may be a WebMarkupContainer. Or nothing at all (having a component on
the java side is possible, but not required)
reikje a écrit :
On the Java side, which Components can you use if you have HTML nested like
this:
h3
.. Text
/h3
For the h3 if I use a Label, I cannot add a Link as
I think Jonathan's new job is going to use Wicket for WML. There has
been some talk of developing it in the open or contributing it. But no
assurances in that regard. At least it will take while to be included
as our next release is generics only - it will only be considered in
the release after
Let's say I have a ListView with this markup:
lt;span wicket:id=links
lt;span wicket:id=delimitergt;|lt;/spangt;
lt;a href=# wicket:id=linkgt;
lt;span wicket:id=linkTextgt;[[Linktext]]lt;/spangt;
lt;/agt;
lt;/spangt;
and this Java Code:
ListView paragraphs = new
Use item.setRenderBodyOnly(true) instead
Martijn
On 3/30/08, reikje [EMAIL PROTECTED] wrote:
Let's say I have a ListView with this markup:
lt;span wicket:id=links
lt;span wicket:id=delimitergt;|lt;/spangt;
lt;a href=# wicket:id=linkgt;
lt;span
Good idea, you mean something like this:
lt;h3gt;
lt;a href=.. wicket:id=gt;Textlt;/agt;
lt;/h3gt;
That works I guess, thx
Pills wrote:
It may be a WebMarkupContainer. Or nothing at all (having a component on
the java side is possible, but not required)
reikje a écrit :
On the
well, you have to have the reference to that link somehow to know if
its enabled or disabled..
-igor
On Sun, Mar 30, 2008 at 11:44 AM, Matthew Young [EMAIL PROTECTED] wrote:
I forgot to mention: the link is created by other people's code. I can't
change the template: I can't put wicket:id
see source of ContextImage for details
-igor
On Sun, Mar 30, 2008 at 11:50 AM, Zheng, Xiahong [EMAIL PROTECTED] wrote:
How does wicket find such resource, e.g. as follows?
link href=style/my.css type=text/css rel=stylesheet /
I found this only works if I mount my pages with
Hello,
I would like to write a custom form in wicket wizard. The documentation
suggested me that overriding the newForm method is what I'm searching for
but I have no idea how I can do it. Could you give me an example please? My
objective is to share a same form among wizard, detail and edit
simply embed your own form into the wizard step panel. wicket supports
nested forms it will deal with it properly.
-igor
On Sun, Mar 30, 2008 at 2:55 PM, Jirka Hradil [EMAIL PROTECTED] wrote:
Hello,
I would like to write a custom form in wicket wizard. The documentation
suggested me
You could overwrite onComponentTag on your component and change the
element type there based on enabled status. just make sure to call
super first. Note that this tick might not work for some components as
they require a certain html tag but i think button will be fine.
Maurice
On Sun, Mar 30,
Yeah but still even if he has the link and overwrites oncomponenttag
on that component, he has to get the content of the link tag
(everything between a and /a) and be able to manipulate it. As far
as i know this is not possible from within wicket. The most likely
candidate getXmlTag() is private
well, if you dont want img to be a child component use a label to
output the entire markup, and change that based on whether or not the
link is enabled.
-igor
On Sun, Mar 30, 2008 at 3:18 PM, Maurice Marrink [EMAIL PROTECTED] wrote:
Yeah but still even if he has the link and overwrites
Hi,
I want to unit test some component behaviors I've created.
Is there a nice way of doing this without having to stub out dummy pages?
The only example I can find is
http://svn.apache.org/repos/asf/wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/behavior/AttributeAppenderTest.java
Oops - i stuffed up the title. Should be testing behaviors
--
View this message in context:
http://www.nabble.com/Best-method-of-testing-borders-tp16389412p16389616.html
Sent from the Wicket - User mailing list archive at Nabble.com.
you really need just one dummy page to test all behaviors...
-igor
On Sun, Mar 30, 2008 at 5:14 PM, Ned Collyer [EMAIL PROTECTED] wrote:
Oops - i stuffed up the title. Should be testing behaviors
--
View this message in context:
What I've done is.. but feels like it could be nicer. (but this is alright
really :))
public void testMyBehavior() {
//create form component to have behaviour placed around it.
FormComponent component = new TextField(testId, new
Model(testFieldValue));
component.error(An
If you are testing something non trivial you will most likely need the
entire environment setup ( requestcycle, session, etc )
That is what start component does I believe.
-igor
On 3/30/08, Ned Collyer [EMAIL PROTECTED] wrote:
What I've done is.. but feels like it could be nicer. (but this
Thanks Igor. But my resource in this case is style sheet not image. Does
that mean I need to write a similar component to accomplish that?
-Original Message-
From: Igor Vaynberg [mailto:[EMAIL PROTECTED]
Sent: Sunday, March 30, 2008 3:48 PM
To: users@wicket.apache.org
Subject: Re:
Scenario,
1) request http://myapp/pages/watchlist
2) throws throw new
RestartResponseAtInterceptPageException(Login.class);
3) Use sign in
4) user redirected to http://pages/watchlist note: path /myapp is
dropped
Any idea?
-
On Sun, Mar 30, 2008 at 7:45 PM, Matthew Young [EMAIL PROTECTED] wrote:
...
I don't want to hard code
/resources/com.mycompany.component.MyComponent/open.png in the template
and just have img src=open.png .../. Is there someway to work out the
prefix
Use wicket:link tags around the image
-igor
On 3/30/08, Enrique Rodriguez [EMAIL PROTECTED] wrote:
On Sun, Mar 30, 2008 at 7:45 PM, Matthew Young [EMAIL PROTECTED] wrote:
...
I don't want to hard code
/resources/com.mycompany.component.MyComponent/open.png in the template
and just have
So I did this:
html xmlns:wicket
body
wicket:panel
wicket:linkimg wicket:id=open src=open.png//wicket:link
/wicket:panel
/body
/html
the src attr doesn't change, it stays as open.png and not change to
/resources/com.mycompany.component.MyComponent/open.png
On Sun, Mar 30, 2008 at 8:37
thats because you have a wicket:id there. wicket:link doesnt touch
components afaik
-igor
On Sun, Mar 30, 2008 at 8:57 PM, Matthew Young [EMAIL PROTECTED] wrote:
So I did this:
html xmlns:wicket
body
wicket:panel
wicket:linkimg wicket:id=open src=open.png//wicket:link
wicket:link doesnt touch components afaik
:( I need it to be a component. My code is basically this:
add(new WebMarkupContainer(img));
Can I do something like this:
add(new WebMarkupContainer(img) {
@Override protected void onComponentTag(final ComponentTag tag)
{
urlfor(new ResourceReference(MyComponent.class, image.png));
-igor
On Sun, Mar 30, 2008 at 9:28 PM, Matthew Young [EMAIL PROTECTED] wrote:
wicket:link doesnt touch components afaik
:( I need it to be a component. My code is basically this:
add(new
I didn't happen to see a reply to this thread, and the stack trace is
still driving me bananas, so I submitted a patch. :-)
https://issues.apache.org/jira/browse/WICKET-1464
Thanks, as always, Wicket committers. :-)
On Thu, 2008-03-13 at 12:45 +0900, David Leangen wrote:
This used
Do you have an example of how we would go about this?
igor.vaynberg wrote:
you really need just one dummy page to test all behaviors...
-igor
--
View this message in context:
http://www.nabble.com/Best-method-of-testing-borders-tp16389412p16391872.html
Sent from the Wicket - User mailing
patch applied. always report a jira issue, that way things dont get
forgotten, and as you can see submitting a patch helps too :)
-igor
On Sun, Mar 30, 2008 at 9:36 PM, David Leangen [EMAIL PROTECTED] wrote:
I didn't happen to see a reply to this thread, and the stack trace is
still
class behaviortestpage extends webpage {
public behaviortestpage(IBehavior subject) {
add(new webmarkupcontainer(container).add(subject));
}
}
behaviortestpage.html
div wicket:id=container/div
-igor
On Sun, Mar 30, 2008 at 9:45 PM, Ned Collyer [EMAIL PROTECTED] wrote:
Do you have an
That's great.
However, I'm having strange behavior when I send an instance of a page to
the tester. I'll start ripping out bits of my application class and see if
thats effecting it,
Failing
//start and render the test page
tester.startPage(new HomePage());
//assert rendered page class
weird, we use that construct all over the place. eg see FormSubmitTest
-igor
On Sun, Mar 30, 2008 at 10:31 PM, Ned Collyer [EMAIL PROTECTED] wrote:
That's great.
However, I'm having strange behavior when I send an instance of a page to
the tester. I'll start ripping out bits of my
I'll check it.
Something to note is, I do not have testPage string inside my code at all.
Near as I can tell the problem is stemmed from DummyHomePage.java
igor.vaynberg wrote:
weird, we use that construct all over the place. eg see FormSubmitTest
-igor
--
View this message in
Which framework should I invest in JSF/Struts 2/Spring MVC/Wicket for someone
moving from jsp?
If Wicket then
I'm looking for good tutorials on wicket or books.
How does Enjoying Web Development with Wicket stackup?
What's the best wicket book available?
The same for the other framework
Wicket in action :) you're gonna get a biased answer here ;)...
Gareth Segree wrote:
Which framework should I invest in JSF/Struts 2/Spring MVC/Wicket for someone
moving from jsp?
If Wicket then
I'm looking for good tutorials on wicket or books.
How does Enjoying Web Development with
56 matches
Mail list logo