>> you mentioned that you implemented such a repeater yourself. didn't you
use
>> any navigation or did you write that yourself? just wondering.
>i implemented a simple prev/next pager which is all that was required
>or that usecase.
Matej's implementation from inMethods works perfectly. I sugge
great!
i didn't think it was THAT easy.
i spend a whole day to find an answer to this, but was looking at the wrong
places.
thank you
Original-Nachricht
> Datum: Thu, 27 Nov 2008 11:06:31 -0500
> Von: Michael O\'Cleirigh <[EMAIL PROTECTED]>
> An: users@wicket.apache.org
> Bet
[X] YES - I would like consistent naming!
Contrib is a bit lame... could be gift or present.. but again - they are all
lame.
wicket stuff seems good. Makes sense too.
I was thinking of making a post about all these vote threads :) I'm
personally not a fan, but i think a vote page on the wiki
or even something cooler with interfaces and multiple inheritance...
interface admin extends user,publisher {}
-igor
On Thu, Nov 27, 2008 at 7:57 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> this is where the classes variation comes in. class AdminRole extends
> UserRole - done
>
> -igor
>
> O
this is where the classes variation comes in. class AdminRole extends
UserRole - done
-igor
On Thu, Nov 27, 2008 at 6:56 PM, Casper Bang <[EMAIL PROTECTED]> wrote:
> Yeah. First I actually didn't understand why until Igor pointed it out. I'm
> no longer using wicket-auth-roles, if one can live wi
[X] YES - I would like consistent naming!
On Thu, Nov 27, 2008 at 4:54 PM, Jeremy Thomerson <[EMAIL PROTECTED]
> wrote:
> I am beginning the WS reorg as noted in previous emails. You can monitor
> progress here:
>
> https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff
On Thu, 27 Nov 2008, kan wrote:
> I have a MyPojo with property java.util.Date someDate
> I use CompoundPropertyModel
> Now I add components on my page, like add(new Label("someDate")) and
> it automagically uses IConvertor to convert from Date to string.
> But in some places of web-site I need pri
Yeah. First I actually didn't understand why until Igor pointed it out.
I'm no longer using wicket-auth-roles, if one can live with the roles
being defined along side the authorization code it works quite nicely
(and with somewhat cleaner code). I ran into another issue however,
trying to model
Interestingly we used a similar approach with using classes as pseudo enums.
Not being able to extend enums is a bit suckfull.
igor.vaynberg wrote:
>
> the problem is that the enum would have to live *inside* the
> wicketstuffauth code. so wicketstuffauth would be the library that
> would need
maybe james patch can help you :
http://www.nabble.com/Client-Side-Image-Map...-td20516107.html#a20516107 ?
Otherwise it should be ImageMap already there..
Nino Saturnino Martinez Vazquez Wael wrote:
Hi Tim
You should get a grasp on models. But isnt it an imagearea (cant
remember the exact n
Hi Tim
You should get a grasp on models. But isnt it an imagearea (cant
remember the exact name) or something you want? Image button is just a
button which has a image...
Tim Squires wrote:
Hi,
I'm trying to retrieve the x and y coords from a user click on an
ImageButton. Can anyone tell
Hi,
I'm trying to retrieve the x and y coords from a user click on an
ImageButton. Can anyone tell me how to get these parameters in an
onSubmit method?
Currently I'm doing
final IModel picture = new
AbstractReadOnlyModel() {
@Override
public Pict
[ X ] - YES - I would like consistent naming
Jeremy Thomerson wrote:
I am beginning the WS reorg as noted in previous emails. You can monitor
progress here:
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/
As we move projects into the wicketstuff-core, I
HI Jeremy
[ X ] - YES, please create a branch in the Wicket Stuff repo just for
I were handed over the code some time ago as I've participated on the
project, but I think gmap2 are more developed and stable.. And I have no
intention of having the two projects compete im thinking of gmap2, so
Eduardo,
See org.apache.wicket.extensions.yui.calendar.DateField if you want a popup
DateTextField does not have a popup
DateTimeField has fields for time (as well as date)
All the javadoc seems to be
http://repo1.maven.org/maven2/org/apache/wicket/wicket/ there .
http://repo1.maven.org/maven2
Create a branch named 'attic' and put dead projects there...
:-)
Bruno Borges
blog.brunoborges.com.br
+55 21 76727099
"The glory of great men should always be
measured by the means they have used to
acquire it."
- Francois de La Rochefoucauld
On Thu, Nov 27, 2008 at 7:49 PM, Jeremy Thomerson <
[X] YES
But I'd like to suggest to use wicket-stuff-myproject
I like the 'stuff' word instead of 'contrib'... sounds more ... cool! :D
cheers,
Bruno
Bruno Borges
blog.brunoborges.com.br
+55 21 76727099
"The glory of great men should always be
measured by the means they have used to
acquire it.
If you are working with Maven, you can set the Eclipse plugin to download
the source for you, then you will have the JavaDoc while developing through
this IDE.
You can also buy the Wicket in Action book (no, Martijn is not giving me any
money ... though I'd really appreciate a few dutch beers).
A
Am Thursday 27 November 2008 22:54:28 schrieb Jeremy Thomerson:
[X] - YES - I would like consistent naming
> PS - I feel like I'm starting a lot of vote threads - should I not be?
IMHO if you feel the need to do so, go ahead. I won't mind. Thank you for
asking!
Regards,
Timm
---
I am beginning the WS reorg as noted in previous emails. You can monitor
progress here:
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/
As we move projects into the wicketstuff-core, I would like to see us rename
them consistently, getting rid of the prepende
I am starting to work on the WicketStuff reorg as the community voted to
do. In doing so, I noticed that wicket-contrib-gmap is still set up to
compile against 1.3.0-incubating-snapshot. Also, we know that Iulian has
said he is no longer maintaining it. In light of this, I propose the
following
What else do you want to generate? For XML maybe this link give you a hint:
http://www.jroller.com/wireframe/entry/wicket_feedpage
As for generating other things (e.g. PDF)... One idea could be navigate
the component hierarchy and produce some document out of it. Of course,
for doing this you wil
Oops - sent early - override that in YourPage.java and then just make
YourPage.xml - viola!
On Thu, Nov 27, 2008 at 3:00 PM, Jeremy Thomerson <[EMAIL PROTECTED]
> wrote:
> @Override
> public String getMarkupType() {
> return "xml";
> }
>
> --
> Jeremy Thomerson
> http://www.wi
@Override
public String getMarkupType() {
return "xml";
}
--
Jeremy Thomerson
http://www.wickettraining.com
On Thu, Nov 27, 2008 at 2:30 PM, Eyal Golan <[EMAIL PROTECTED]> wrote:
> Hi,
> I was asked today if it's possible to render a page to different format
> than
> HTML.
Hi,
I was asked today if it's possible to render a page to different format than
HTML.
I guess it is possible, but how one can do it?
Eyal Golan
[EMAIL PROTECTED]
Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74
P Save a tree. Please don't print this e-mail
Hi Igor,
I understand. I cannot dump all my code here. It is too much.
I will try to give you a runnable code.
Now, I am using iterator() instead of iterator(Comparator) to bypass the
problem.
Thanks,
Valentine
igor.vaynberg wrote:
>
> i cannot put this into my ide and run it to confirm the
public class datelabel extends webcomponent {
private string pattern;
public datelabel(string id, imodel date, string pattern) {
super(id, date);
this.pattern=pattern;
}
protected void onComponentTagBody(markupstream s, componenttag t) {
replacecomponenttagbody(s,t, new
simpleda
Not really the best solution, but you can create a different label for
different formats that you want, i.e.:
DateOnlyLabel (which overrides getConverter and always returns a converter
that displays only the date)
DateAndTimeLabel (etc)
ala...
public class DateOnlyLabel extends Label {
p
no. why would it do that? visibility is a render-time condition, it
has nothing to do with component hierarchy.
-igor
On Thu, Nov 27, 2008 at 12:01 PM, Valentine2008
<[EMAIL PROTECTED]> wrote:
>
> But Component.get(pathString) will check the visibility and will return null
> if the child is invis
Yes, I know. But it takes Class only. And I have several different
formats (just date, date+time+tz, "human readable date" like "2 days
ago" and so on), how can I substitute a format in given piece of code
like add(new Label("someDate"))?
2008/11/27 Bruno Cesar Borges <[EMAIL PROTECTED]>:
> @Overr
But Component.get(pathString) will check the visibility and will return null
if the child is invisible. Right?
Thanks,
Valentine
igor.vaynberg wrote:
>
> iterator() does not check visibility.
>
> -igor
>
> On Thu, Nov 27, 2008 at 11:24 AM, Valentine2008
> <[EMAIL PROTECTED]> wrote:
>>
>> C
If you want Wicket to be competitive, you should think about better and
centralized documentation.
Many developer blogs is not documentation, an outdated wiki is not
documentation, and definitely source code is not documentation.
I'm saying all this, because, once again, I spent a lot of time to ge
i cannot put this into my ide and run it to confirm the error you are getting.
-igor
On Thu, Nov 27, 2008 at 11:22 AM, Valentine2008
<[EMAIL PROTECTED]> wrote:
>
> The getInputForm() will return an instance of Form class in Wicket.
> After creating the form,
> ---
> // 3. crea
iterator() does not check visibility.
-igor
On Thu, Nov 27, 2008 at 11:24 AM, Valentine2008
<[EMAIL PROTECTED]> wrote:
>
> Can we get even the invisible children?
>
> Seems we cannot:-(
>
> igor.vaynberg wrote:
>>
>> iterator()
>>
>> -igor
>>
>> On Thu, Nov 27, 2008 at 10:42 AM, Valentine2008
the problem is that the enum would have to live *inside* the
wicketstuffauth code. so wicketstuffauth would be the library that
would need to define the enum - and it doesnt know about your
application specific roles. at least this was the issue when it was
first being designed. i havent really loo
The getInputForm() will return an instance of Form class in Wicket.
After creating the form,
---
// 3. create, setup, and add the input form
inputForm = new Form("inputForm");
inputForm.setOutputMarkupId(true);
add(inputForm);
--
Can we get even the invisible children?
Seems we cannot:-(
igor.vaynberg wrote:
>
> iterator()
>
> -igor
>
> On Thu, Nov 27, 2008 at 10:42 AM, Valentine2008
> <[EMAIL PROTECTED]> wrote:
>>
>> Use iterator(Comparator)?
>>
>> Or other ways?
>>
>> Thanks,
>> Valentine
>> --
>> View this mess
No but an application is designed for a given number of roles, what
would you possibly accomplish by adding new roles without editing source
code and account for the new behavior you are putting in?
Seems to me the application would always need to be revised to work with
these new roles (say m
show us the full code please
-igor
On Thu, Nov 27, 2008 at 10:39 AM, Valentine2008
<[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I wrote the following code to print out all the children of the an input
> form.
> ---
> Iterator iterator = getInputForm().iterator(new Co
By the way, you can implement an IPageFactory :-)
-Mensagem original-
De: Bruno Cesar Borges [mailto:[EMAIL PROTECTED]
Enviada em: quinta-feira, 27 de novembro de 2008 16:49
Para: users@wicket.apache.org
Assunto: RES: RES: How can I instance home page myself
You can always code your page
iterator()
-igor
On Thu, Nov 27, 2008 at 10:42 AM, Valentine2008
<[EMAIL PROTECTED]> wrote:
>
> Use iterator(Comparator)?
>
> Or other ways?
>
> Thanks,
> Valentine
> --
> View this message in context:
> http://www.nabble.com/How-to-get-all-the-children-of-a-MarkupContainer--tp20723938p20723938.
because you cannot add custom enum values without editing source code.
there is a version implemented using classes in wicketstuff somewhere.
-igor
On Thu, Nov 27, 2008 at 10:33 AM, Casper Bang <[EMAIL PROTECTED]> wrote:
> What attracts me to Wicket is how it tries to do as much in type-safe Java
On Thu, Nov 27, 2008 at 10:28 AM, Stefan Fußenegger
<[EMAIL PROTECTED]> wrote:
>
> Hi Igor,
>
> thanks for implementing this minimal version. i totally agree with your
> reasoning. Is there any chance though that this goes into 1.3 branch as
> well? I'd really appreciate that.
done
> you mentione
You can always code your page in such way that makes it easy to be tested, like
this:
public MyPage() {
setFoo(getApplication().getFoo());
}
protected MyPage(IFoo foo) {
setFoo(foo);
}
-Mensagem original-
De: Kamil Hark [mailto:[EMAIL PROTECTED]
Enviada em: quinta-feira, 27 de nov
A really good question. I've heard that it's because that it is a demo
of how you could implement it.
I share the exact same thoughts as you do about this.
Casper Bang wrote:
What attracts me to Wicket is how it tries to do as much in type-safe
Java code as possible, so I was a bit surprised w
Use iterator(Comparator)?
Or other ways?
Thanks,
Valentine
--
View this message in context:
http://www.nabble.com/How-to-get-all-the-children-of-a-MarkupContainer--tp20723938p20723938.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---
Hi,
I wrote the following code to print out all the children of the an input
form.
---
Iterator iterator = getInputForm().iterator(new Comparator() {
public int compare(Object o1, Object o2)
{
System.out.form
Yes I know that I can do it through Application but then it is very dificult
to test. If I could inject args into constructur like below then it would be
much better
new MyPage(Foo foo){...}
--
View this message in context:
http://www.nabble.com/How-can-I-instance-home-page-myself-tp20723688p20
What attracts me to Wicket is how it tries to do as much in type-safe
Java code as possible, so I was a bit surprised with the finding that
the org.apache.wicket.authorization stuff is not based upon Enum and
EnumSet but rather type-unsafe string tokens.
Are there good reasons for this design
Hi Igor,
thanks for implementing this minimal version. i totally agree with your
reasoning. Is there any chance though that this goes into 1.3 branch as
well? I'd really appreciate that.
you mentioned that you implemented such a repeater yourself. didn't you use
any navigation or did you write t
What kind of dependencies you want to pass on?
If you want URL parameters, just put a PageParameters argument to the Page's
constructor. Wicket will inject that automatically.
If you want to inject objects from the Application instance, you can just get
those from Page's constructor itself.
pu
an Application class (and WebApplication) has method Class getHomePage()
Why this method returns class instead of Page object?
Now I'm limited to use non-argument constructor, I connot pass any
dependiences and so on.
Are there any posibilities to instance and return Page object?
regards
On Thu, Nov 27, 2008 at 12:46 AM, Stefan Fußenegger
<[EMAIL PROTECTED]> wrote:
>
> I don't think IDataProvider is only about databases.
you started off with your core assumption being wrong. idataprovider
was written exclusively for accessing databases. my thinking, at the
time, was that 99% of pe
@Override
public IConverter getConverter(Class type)
{
return MyConverter();
}
-Mensagem original-
De: kan [mailto:[EMAIL PROTECTED]
Enviada em: quinta-feira, 27 de novembro de 2008 14:57
Para: users@wicket.apache.org
Assunto: Set format date "inline
I have a MyPojo with property java.util.Date someDate
I use CompoundPropertyModel
Now I add components on my page, like add(new Label("someDate")) and
it automagically uses IConvertor to convert from Date to string.
But in some places of web-site I need print only "27/11/2008", in some
places bette
On Thu, Nov 27, 2008 at 4:44 AM, Arie Fishler <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have some injection related issues in my wicket application.
>
> 1. My session hold a bean (managed by the spring container) that is passed
> to it on construction of the session. It is not a Serializable object (s
I actually did find it afterward :)
the ctrl+o in my eclipse confused me. :/
And I understood that it's the same
Thanks anyway...
I
Eyal Golan
[EMAIL PROTECTED]
Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74
P Save a tree. Please don't print this e-mail un
Nicer? Well it's quite the same with the difference that I overrode the cycle
processor and Dipu just the cycle ... I suspect you didn't find the right
method to override ;-)
regards,
Michael
egolan74 wrote:
>
> Thanks Dipu and Michael,
>
> Michael, you understood correctly.
> I used Dipu's s
Hi Stefan,
You can get the IP address that sent the request like this:
WebRequest wr = (WebRequest) RequestCycle.get().getRequest();
String originatingIPAddress = wr.getHttpServletRequest().getRemoteHost();
You can probably place it directly in the decode(...) method of your url
coding strat
Thanks Dipu and Michael,
Michael, you understood correctly.
I used Dipu's solution as it looks nicer (no offend Michael :) )
However, I added a check for development / deployment.
And this is my (almost) final method.
/**
* @see
org.apache.wicket.Application#newRequestCycle(org.apache.wic
Hi all,
I searched nabble, but couldn't find any recent posts that brought me a
solution to this problem:
I have a page with two panels, a master/detail setup. The master has a list
of items, the detail a TinyMCE editor. The details panel is invisible until
the user clicks an item in the master l
hi,
in my webapp i want to serve files from the filesystem to the user. so i coded
something like this:
mount(new URIRequestTargetUrlCodingStrategy("/files") {
@Override
public IRequestTarget decode(RequestParameters requestParameters) {
final String fileI
I typically use Fragments for these kinds of situations, unless of course,
the same type of component will need to be used elsewhere. Then, I use a
custom Panel class.
On Thu, Nov 27, 2008 at 8:01 AM, Nicolas Castin <[EMAIL PROTECTED]>wrote:
> Hello,
>
> I had approxymatly the same think to do (
What do you mean by saying you "didn't see onRuntimeException" in
WebRequestCycleProcessor? If you didn't find it there it's because it's a
method of its base class ;-)
What I didn't mention when providing the code was that it's actually
returning a Page (our internal server error page) and gets
this is what I do
/**
* @see
org.apache.wicket.Application#newRequestCycle(org.apache.wicket.Request,
* org.apache.wicket.Response)
*/
public RequestCycle newRequestCycle(final Request request, final Response
response)
{
return new WebRequestCycle(this, (WebRequest)request, (WebResponse)res
Thanks,
but looking at WebRequestCycleProcessor I didn't see onRuntimeException
method.
We use 1.3.4 version
Looking at AbstractRequestCycleProcessor:respond, I see the call:
if (responseClass != internalErrorPageClass &&
settings.getUnexpectedExceptionDisplay() ==
IEx
the first possibility that comes to my mind is overriding the following
method in your application:
@Override
protected IRequestCycleProcessor newRequestCycleProcessor() {
return new WebRequestCycleProcessor() {
@Override
Hi,
In deployment, we set our own internal error page:
getApplicationSettings().setInternalErrorPage(InternalErrorPage.class);
and
getExceptionSettings().setUnexpectedExceptionDisplay(
IExceptionSettings.SHOW_INTERNAL_ERROR_PAGE);
Is there a quick way to get the type of the exc
Hello,
I had approxymatly the same think to do (with image in place of link /
label).
I created a custom panel handling the content of the cell, which allows more
that one element into it.
Regards
On Thu, Nov 27, 2008 at 1:50 PM, simonm <[EMAIL PROTECTED]> wrote:
>
> I am drawing a table using
take a look at the LinkIconPanel.java to get an idea, either you can use it
or you can roll out a similar component that fits your requirement.
Cheers
Dipu
On Thu, Nov 27, 2008 at 12:50 PM, simonm <[EMAIL PROTECTED]> wrote:
>
> I am drawing a table using DataView and implement the populateItem m
I am drawing a table using DataView and implement the populateItem method to
add every table row item.
One of my table cell should display a simple text OR a link OR both (e.g.
the cell will have a text, and a link beneath – both in the same cell)
My HTML snippet:
….
…
[Here should come
Hi,
I have some injection related issues in my wicket application.
1. My session hold a bean (managed by the spring container) that is passed
to it on construction of the session. It is not a Serializable object (some
of the interfaces that this object is using are spring interfaces and not
seria
Just a thought. Does it have any sense to make something like
"BookmarkablePageForm" component?
So, the component would be designed to use with and takes
Page.class (and maybe PageParameters which could be serialized as set
of ). It generates "action" attribute which points
to the page (probably m
Hi all.
I am using wicket-animator and I have discovered today a conflict with
the wicket default component update via ajax.
If a single component is added to the AjaxRequestTarget and I append a
custom javascript via AjaxRequestTarget.appendJavascript() that affect
the same component, i.e. calli
COOL!!! :)
Jeremy Thomerson wrote:
You can do exactly what you asked in less than 40 lines of code - and not be
bound to the class name in the HTML (which you shouldn't do). Here's how:
IN YOUR APPLICATION CLASS:
@Override
protected void init() {
super.init();
register
Hi Igor,
I don't think IDataProvider is only about databases. There are other data
sources and some return the total amount and the desired subset at the same
time (Lucene as a famous example). Such data sources would really benefit of
a single-query-approach. I faced this issue myself in a searc
You can do exactly what you asked in less than 40 lines of code - and not be
bound to the class name in the HTML (which you shouldn't do). Here's how:
IN YOUR APPLICATION CLASS:
@Override
protected void init() {
super.init();
registerConventionalComponent("feedbackPanel",
Using AutoComponentResolver, you can add a feedback panel like this:
Ricardo Mayerhofer wrote:
>
> I started to use wicket some time ago, and I'm really enjoying it. Best
> framework ever.
> But I've some suggestions.
> I think wicket could be better if it had less boiler plate code. This
>
78 matches
Mail list logo