Wicket completes the url by using: WebRequestCodingStrategy.urlPrefix(final RequestCycle requestCycle)you can't do that because that will also prefix the wicket servlet path. So you just need to append the context path only
you can get the context path by:String contextPath = Application.get().getA
Sorry, my celebrations were premature, its the same 9 chapters as the beta
book.
What rotten service.
Called and let a message with Apress support still no reply.
De Soca wrote:
>
> Hi Martin,
>
> thanks, that did it. Strange that they never changed the link.
>
> Cheers.
>
> Martin Funk wr
Hi Martin,
thanks, that did it. Strange that they never changed the link.
Cheers.
Martin Funk wrote:
>
> download the book even if it still says "(beta)" in the download area.
> worked for me.
>
> mf
>
> middledot schrieb:
>> I too bought a beta version of the book, hoping that I would be in
In my application, I created an abstract base form (BaseForm.java)
which declares this method:
public void setResponse(byte[] filedata, String filename)
All of my form classes extend the BaseForm class.
Here's my code:
http://oscon2006.sourceforge.net/xref/oscon2006/web/BaseForm.html
http:/
Especially the determination of differences between object graphs might
get complex. By the way, it might be useful to look at Hibernate and
JDO because these tools do something similar, detecting changes made to
an object-graph and performing the appropriate (minimal) updates
(changes) towards a d
but you know they are formcomponents, so the versioning thing can skip models of formcomponents-IgorOn 9/19/06, Johan Compagner <
[EMAIL PROTECTED]> wrote:form components transient fields?where are you talking about?
I was talking about the models under the form components which now are not causing
nice!one feature i wanted but havent had time to add in yet was when you create a panel (w/out usign the wizard) you should be able to click on the html tab and have it create an empty html file for you, same for properties.
-IgorOn 9/19/06, Joni Freeman <[EMAIL PROTECTED]> wrote:
In addition to a
Hello,
I would like to use the ajax autocomplete feature to add words to an
inputfield. default behaviour of the javascript in
AbstractAutoCompleteBehavior is to replace the contents of the
inputfield with the selected value. Is there an easy (intended) way of
overriding this behaviour in a way th
The Slider component from wicket-stuff/wicket-contrib-yui uses this if
you want to see code.
Eelco
On 9/19/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> see PackagedTextTemplate and HeaderContributor. the template supports
> variable substitution.
>
> -Igor
>
>
>
> On 9/19/06, Nino Wael < [EMAI
Ok, thanks.On 9/18/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
There's this: http://www.wicket-library.com/wicket-examples/compref?wicket:bookmarkablePage=:wicket.examples.debug.InspectorPage
You can check out the examples to see how that works. Suggestions toimprove monitoring are welcome. We a
In addition to a few bug fixes this version contains following
improvements and new features.
- Improved preview
Preview pane is now wicket:preview attribute aware. There's no limit how
deep the previewed hierarchies can be. Preview pane can also inline
non-packaged CSS and relocate images. A com
Thanks, that reminds me to look at wicket 2 before I start asking questions. Forgot to do that this time. On 9/19/06, Igor Vaynberg <
[EMAIL PROTECTED]> wrote:in 2.0 IDataProvider extends IDetachable. in
1.x it still supports
it although it doesnt implement it directly (so we can stay backwards
co
private void writeObject(java.io.ObjectOutputStream out)
throws IOException
private void readObject(java.io.ObjectInputStream in)
throws IOException, ClassNotFoundException;No but what does that solve?
It will save a lot of complexity for the serialization because you can delegate to
form components transient fields?where are you talking about?I was talking about the models under the form components which now are not causing a model change even if new data is comming inbut if we do a complete capture i see those model changes and i say "he it is changed, now create a new versio
hmm but form components are written by us, we can make those fields transient?i dont know, for 2.0 it might be cool to just clone the page every time - we already do this anyways when storing to disk. the change thing is pretty error prone and hard for n00bz and even not so n00bz. the other big plu
and there is another problem with the automatic-versioning-that-would-make-your-life-as-a-wicket-developer-much-more-easier because now form components don't do version of there models.. Because it is data and we most likely don't want to version that
But with our automatic-versioning-that-would-ma
I just improved that request target a bit. Property responseType is
not needed there, as that can be (and should be) retrieved from the
resource stream (deprecated in 1.2, removed in 2.0) and I added a
fileName property which can optionally be used for the very common use
case where you want to set
Yep. Che, directly writing tags is possible, not not something we
recommend, as besides the fact that you'll probably create an
unmaintainable mess for yourself, those tags would never be
'meaningful' in the sense that they could be interpreted as special
wicket tags, components, etc. There are a c
break your page into smaller panels, and add the ones that are appropriate. panels provide their own markup that is how you get something like this to work.-IgorOn 9/19/06,
Ars <[EMAIL PROTECTED]> wrote:
Hello, The number and configuration of frames and controls on a page in my program is dete
yes, i think jonathan borrowed /app/* from tapestry :)-IgorOn 9/19/06, Gwyn Evans <[EMAIL PROTECTED]
> wrote:See the wicket-quickstart/-template/etc for examples, but we typically
run with /app/* and as a default, have a index.html in "/" that does aHTTP redirect to "/app/"./GwynOn 19/09/06, jan_ba
On 9/19/06, Johan Compagner <[EMAIL PROTECTED]> wrote:
yeah thats nice, but you just lost the flexibility of where the address can come from (no imodel indirection - yeah you can make yet another constructor) and more importantly the short hand compound property model notation. if i can use the not
in 2.0 IDataProvider extends IDetachable. in 1.x it still supports it although it doesnt implement it directly (so we can stay backwards compatible), so you have to do it yourselfclass MyDataProvider extends SortableDataProvider implements IDetachable
here is the snippet from dataviewbase.ondetach(
see PackagedTextTemplate and HeaderContributor. the template supports variable substitution.-IgorOn 9/19/06, Nino Wael <
[EMAIL PROTECTED]> wrote:
Hi
I have some _javascript_ that I need to modify based on
the java code.
I have some _javascript_ that checks all checkboxes or un
Forgot to answer this... here it is:
> What version of Wicket are you using? There should work with the current
> version from svn?
wicket-1.2-SNAPSHOT.jar
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceFor
:? it already works, since this morning! the issue was "auto-solved"...
Thank you.
On 9/19/06, Janne Hietamäki <[EMAIL PROTECTED]> wrote:
>
>
> What version of Wicket are you using? There should work with the current
> version from svn?
>
> Janne
>
> On 19.9.2006, at 13.08, Manuel Barzi wrote:
>
See the wicket-quickstart/-template/etc for examples, but we typically
run with /app/* and as a default, have a index.html in "/" that does a
HTTP redirect to "/app/".
/Gwyn
On 19/09/06, jan_bar <[EMAIL PROTECTED]> wrote:
> Thanks Johan
>
> I searched bugzilla, but did not found any similar bug r
Well, being practical, why don't you just style them via CSS,
e.g.
div#listmenu em { /*disabled links*/
display:block;
padding:0 6px; /*creates space each side of menu item's text */
font-style: normal;
font-weight:normal;
color:gray;
}
/Gwyn
On 19/09/06, Stefan Arentz <[EMA
What version of Wicket are you using? There should work with the current version from svn? JanneOn 19.9.2006, at 13.08, Manuel Barzi wrote:Ok, checking the markup I can see - following the rules - shouldn't Iuse parent html element body, neither elements updwards (head, html,etc...). Wicket-portlet
On 9/19/06, Martijn Dashorst <[EMAIL PROTECTED]> wrote:
> This is totally against 'the Wicket' way. The whole idea is to
> minimize scripting in the markup. What you propose is just going in
> the oposite direction.
Sometimes being practical is better than the wicket way ;)
S.
-
This is totally against 'the Wicket' way. The whole idea is to
minimize scripting in the markup. What you propose is just going in
the oposite direction.
Martijn
On 9/19/06, Stefan Arentz <[EMAIL PROTECTED]> wrote:
> On 9/19/06, Martijn Dashorst <[EMAIL PROTECTED]> wrote:
> > wicket:link is very
On 9/19/06, Stefan Arentz <[EMAIL PROTECTED]> wrote:
On 9/19/06, Martijn Dashorst <[EMAIL PROTECTED]> wrote:> wicket:link is very basic. You won't be able to change much, if> anything at all. It was just meant as a quick way of building a
> working menu. If you want more, then you'll have to use> B
On 9/19/06, Martijn Dashorst <[EMAIL PROTECTED]> wrote:
> wicket:link is very basic. You won't be able to change much, if
> anything at all. It was just meant as a quick way of building a
> working menu. If you want more, then you'll have to use
> BookmarkablePageLinks
Hm that kind of sucks :-)
B
It appears that under some conditions, the script associated with the
date picker in the HTML is not executed when the HTML is loaded through
Ajax. So Calendar.setup never get called.
I could not figure what those secific conditions are. (In a simple use
case, it works without problem.) Any ide
Hi again,
I just re-read you message and maybe I missed your point a little.
Maybe what you need is your own component that creates the markup you
need for your control or frame.
If you then replace a markup element in your html code, you can
basically do whatever you want:
Index.html
-
Hi Arseny,
One way is to markup your main template with wicket-tagged elements in
all the places where you can possibly have a control or frame. Then in
your business logic you replace that element either with nothing (an
empty component) or the panel you would like to have in the place.
Example:
Person person = new Person();
CompoundPropertyModel personModel = new CompoundPropertyModel(person);
Component parent = new Component("personPanel", personModel);
Component child = new Component("addressPanel", new CompoundPropertyModel(new PropertyModel("address", personModel)));
Just for my u
Hi,
I have a situation where I use a domain object as the source for a
dataprovider. So to get the list of items for the data provider I am
actually querying the domain object like:
manager.getArtists();
Since the manager is a persistent object, I need to refresh it from the
database. In
Hello,
The number and configuration of frames and
controls on a page in my program is determined dynamically, depending on
some business
logic. Is there any way to accomplish it in Wicket with its
static HTML templates?
--
Best regards,
Arseny
--
On 9/19/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
Person person = new Person();
CompoundPropertyModel personModel = new CompoundPropertyModel(person);
Component parent = new Component("personPanel", personModel);
Component child = new Component("addressPanel", new CompoundPropertyModel(new Prop
On 9/19/06, Johan Compagner <[EMAIL PROTECTED]> wrote:
And i only stop at Strings, Numbers and primitives.But i don't know if that can currently really work (enums?)
Don't forget arrays and cyclic dependences.
-
Take Surveys
You can't. The Wicket Link components are created automatically with a
random id and hence not accessible to you. If you want to change the
style, you have to use wicket:id in the markup, manually create a Link
and change the style. BTW your manually created links can of course be
inside as wicket
wicket:link is very basic. You won't be able to change much, if
anything at all. It was just meant as a quick way of building a
working menu. If you want more, then you'll have to use
BookmarkablePageLinks
Martijn
On 9/19/06, Stefan Arentz <[EMAIL PROTECTED]> wrote:
> On 9/19/06, jan_bar <[EMAIL
On 9/19/06, jan_bar <[EMAIL PROTECTED]> wrote:
> Link.setAutoAnable()
That will only work for links created programatically. I'm talking
about links that are created by using Some Page
S.
-
Take Surveys. Earn Cash. Influenc
Link.setAutoAnable()
Jan
"Stefan Arentz" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I have a in a master template and it seems to change
> from a Link to a Link when the current page is
> the same as the one linked to.
>
> Is it possible to turn this behaviour off or to custom
that is wrong for wicket 1.2 yes.You should use a RequestTarget for that see for example: ResourceStreamRequestTargetOn 9/18/06, Ralf Ebert
<[EMAIL PROTECTED]> wrote:Hi,
the solution for downloading a file immediately after a form submit(http://www.wicket-wiki.org.uk/wiki/index.php/Best_Practices_
OK, did it and it works fine now... ;)
> Ok, checking the markup I can see - following the rules - shouldn't I
> use parent html element body, neither elements updwards (head, html,
> etc...). Wicket-portlet-examples, ExamplePortlet.html and
> ExamplePortlet2.html just contain inner-body html code
lastmodifiedtime is already set correctly for package resources.The expire header could be set better i guess. But that is a very small penalty because if it expiresit just checks in a head request if the lastmodification time is also changed. If not it doesn't get the file again.
So it for the mos
I have a in a master template and it seems to change
from a Link to a Link when the current page is
the same as the one linked to.
Is it possible to turn this behaviour off or to customize it?
S.
-
Take Surveys. Earn Cash.
why the hell would you want to add
something random into _javascript_ and css? those are static 99% of the
time! if it by default appended the last_modified file date i would be
much more impressedbut this is also a bit stupid. The last modified file date is already used for caching resourcesThat I
Hi
I have some _javascript_ that I need to modify based on
the java code.
I have some _javascript_ that checks all checkboxes or unchecks
em all but the ones that are disabled. I’ve created a small component
that handles the stuff and placed the _javascript_ in that component as we
Ok, checking the markup I can see - following the rules - shouldn't I
use parent html element body, neither elements updwards (head, html,
etc...). Wicket-portlet-examples, ExamplePortlet.html and
ExamplePortlet2.html just contain inner-body html code, so I should do
the same... will check!
On 9/1
Hi, Janne,
After satisfactory testing the "wicket-portlet-examples" (1.x), I
decided to test a part of my webapp, just a few linked pages to test
navigation. So, what I did is just extending from PortletPage, instead
of WebPage. No compilation errors, and also no errors when deploying
the WAR in L
see:http://sourceforge.net/tracker/index.php?func=detail&aid=1555483&group_id=119783&atid=684977
in 1.2 you should use a servlet mapping. Else everything will go through the wicket servlet. So it is recommended that you use something like /app/*johanOn 9/19/06,
jan_bar <[EMAIL PROTECTED]> wrote:
T
Thanks Johan
I searched bugzilla, but did not found any similar bug report. What is wrong
with this setup? Should I have Wicket servlet mapped as "/something/*" to
avoid troubles?
I am not versed in servlet context path, I cannot help you. I would append
'/' if not already present in path.
Jan
download the book even if it still says "(beta)" in the download area.
worked for me.
mf
middledot schrieb:
> I too bought a beta version of the book, hoping that I would be informed of
> the final release but no such luck.
> The e-book is still in beta version on their website.
> I tried to down
yes this is a know problem. I think there is already a bug report for this. Funny that it only comes up now twice. And this behaviour is there already a long timeMaybe because it is not the recommended way of configuring the wicket servlet..
This kind of configuring is really only working right in
Hi,
I observe strange behaviour. My web application is deployed as EAR with "gc"
as context root. The servlet mapping is "/*". The Url generated by urlFor()
is:
http://localhost:8091/gc?wicket:interface=:16:mainFrameBorder:processBar:wishEditor:editWish:-1:IFlashListener
I think that urlFor shoul
yeah thats nice, but you just lost the flexibility of where the address can come from (no imodel indirection - yeah you can make yet another constructor) and more importantly the short hand compound property model notation. if i can use the notation on a textfield why cant i use it on my editor pan
I too bought a beta version of the book, hoping that I would be informed of
the final release but no such luck.
The e-book is still in beta version on their website.
I tried to download the code for the book but it's not there either.
Strange.
Les
De Soca wrote:
>
> Hello,
>
> just curious, has
59 matches
Mail list logo