ImageDropDownChoice?

2009-10-05 Thread Phil Grimm
Hey Folks,

Anyone know of a solid ImageDropDownChoice component?
I've seen others ask about this in old posts, but nothing definitive.

Using google, I found this open source Wicket app that implemented an
ImageDropDownChoice:
http://xoosent.xoocode.org/demo/app/show/
Looks like it doesn't work with Safari though (ok on Firefox, didn't try
IE).

Another option I found that might be wrapped with a Wicket
ImageDropDownChoice impl...
http://www.marghoobsuleman.com/jquery-image-dropdown
Looks free (open?) and claims to support all the browsers.

Any other options out there?

Phil


Re: wicket-phonebook

2009-09-24 Thread Phil Grimm
Folks,

I just got it working by adding to the pom...


main-maven2-repo
The "main" maven2 repository
http://mirrors.ibiblio.org/pub/mirrors/maven2



commons-pool
commons-pool
1.5


The commons-dbcp requires commons-pool.

Phil

On Thu, Sep 24, 2009 at 6:19 AM, Andreas Kaluza wrote:

> There was a problem in the pom.xml. You have to include:
>
>
>wicket-snaps
>http://wicketstuff.org/maven/repository
>
>true
>
>
>true
>
>
>
> into the repositories-tag. With that the installation works.
>
> Cheers,
>
> Andy
>
> > -Ursprüngliche Nachricht-
> > Von: Pierre Goupil [mailto:goupilpie...@gmail.com]
> > Gesendet: Donnerstag, 24. September 2009 12:39
> > An: users@wicket.apache.org
> > Betreff: Re: wicket-phonebook
> >
> > I've used the phonebook without any problem. Are you sure you've got
> > the
> > latest version? Plus, you need the whole wickestuff-core project (found
> > in
> > wicketstuff/wicketstuff-core), AFAIK. And it looks like you haven't got
> > it
> > on your hard drive, since Maven tries and download it.
> >
> > Regards,
> >
> > Pierre
> >
> >
> > On Thu, Sep 24, 2009 at 12:33 PM, Andreas Kaluza  > kl.de>wrote:
> >
> > > Hi @all,
> > >
> > >
> > >
> > > I'm trying to install the wicket-phonebook with "mvn install". The
> > error
> > > message is:
> > >
> > >
> > >
> > > [INFO] Scanning for projects...
> > >
> > > Downloading:
> > > http://download.java.net/maven/2//org/wicketstuff/wicketstuff-core/
> > >
> > > 1.4-SNAPSHOT/wicketstuff-core-1.4-SNAPSHOT.pom
> > >
> > > [INFO] Unable to find resource
> > > 'org.wicketstuff:wicketstuff-core:pom:1.4-SNAPSHO
> > >
> > > T' in repository maven2-repository.dev.java.net
> > > (http://download.java.net/maven/
> > >
> > > 2/)
> > >
> > > [INFO]
> > > -
> > ---
> > >
> > > [ERROR] FATAL ERROR
> > >
> > > [INFO]
> > > -
> > ---
> > >
> > > [INFO] Error building POM (may not be this project's POM).
> > >
> > >
> > >
> > >
> > >
> > > Project ID: null:phonebook:war:null
> > >
> > >
> > >
> > > Reason: Cannot find parent: org.wicketstuff:wicketstuff-core for
> > project:
> > > null:p
> > >
> > > honebook:war:null for project null:phonebook:war:null
> > >
> > >
> > >
> > >
> > >
> > > [INFO]
> > > -
> > ---
> > >
> > > [INFO] Trace
> > >
> > > org.apache.maven.reactor.MavenExecutionException: Cannot find parent:
> > > org.wicket
> > >
> > > stuff:wicketstuff-core for project: null:phonebook:war:null for
> > project
> > > null:pho
> > >
> > > nebook:war:null
> > >
> > >at
> > org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:404)
> > >
> > >at
> > org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:272)
> > >
> > >at
> > org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
> > >
> > >at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
> > >
> > >at
> > > org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:6
> > >
> > > 0)
> > >
> > >
> > >
> > > Is the pom.xml corrupted (I have the original one)?  It seems that
> > the
> > > maven
> > > repository is incomplete. Anyone a solution?
> > >
> > >
> > >
> > > Cheers,
> > >
> > > Andy
> > >
> > >
> >
> >
> > --
> > Sans amis était le grand maître des mondes,
> > Eprouvait manque, ce pour quoi il créa les esprits,
> > Miroirs bienveillants de sa béatitude.
> > Mais au vrai, il ne trouva aucun égal,
> > Du calice du royaume total des âmes
> > Ecume jusqu'à lui l'infinité.
> >
> > (Schiller, "l'amitié")
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Phil Grimm
Mobile: (858) 342-5987
Skype: philgrimm336


Re: Escapeing of single quotes for AutoCompleteTextField

2009-03-16 Thread Phil Grimm
hen
> >
> > Tel +49-241-900 89-21
> > Fax +49-241-900 89-19
> >
> > thomas.g...@qleo.de
> > www.qleo.de
> >
> > QLEO Science: System-Lösungen für Forschung - Lehre - Administration
> >
> _____
> >
> > QLEO Science GmbH, Theaterstr. 13, D-52062 Aachen, Tel. +49 241 90089-0 ;
> > Fax +49 241 90089-19
> > Sitz der Gesellschaft: Aachen - Amtsgericht Aachen HR B 7321
> >
> > Geschäftsführer:
> > Dr. rer. medic. Dipl.-Ing Bernhard Krause M.O.R.
> > Dipl.-Ing. Daniel Müllers SAE
> > Dipl.-Math. Armin Priggen
> >
> _
> >
> > Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
> > Informationen. Wenn Sie nicht der richtige Adressat sind oder diese eMail
> > irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und
> > vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte
> > Weitergabe dieser Mail ist nicht gestattet.
> >
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
>
> -
> 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


HTML can't reference a component (Label) multiple times?

2009-02-12 Thread Phil Grimm
Guys,

If I need to reference a Label multiple times on the page.
Is there a better way than creating multiple redundant but distinct labels?

Is this the only option?

add(new Label("authorName1"));
add(new Label("authorName2"));
add(new Label("authorName3"));





This (non-one-to-one) usage...

add(new Label("authorName"));




... causes error:

WicketMessage: The component [Component id = author.name] has the same
wicket:id as another component already added at the same level


Phil

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


Re: AutoCompleteTextField buggy?

2009-02-08 Thread Phil Grimm
I tried it in my app (running 1.4-rc1) and was not able to reproduce this.
Phil

On Sat, Feb 7, 2009 at 1:05 PM, Arthur Leigh Allen <
arthurleigh.al...@yahoo.de> wrote:

> hi igor, it's 1.3.5
>
>
>
>
> 
> Von: Igor Vaynberg 
> An: users@wicket.apache.org
> Gesendet: Samstag, den 7. Februar 2009, 00:44:28 Uhr
> Betreff: Re: AutoCompleteTextField buggy?
>
> what wicket version are you using?
>
> -igor
>
> On Fri, Feb 6, 2009 at 3:32 AM, Arthur Leigh Allen
>  wrote:
> >
> >
> > Hi there
> >
> > I read that some people here got the same exception like me, but I
> couldn't find an answer.
> >
> > Do the following:
> > -use an AutoCompleteTextField
> > -override the method getChoices(String input)
> > -do a time-consuming database call to retrieve the choices
> > -return the choices
> >
> > everything works fine... but do the following steps VERY FAST
> > -click at the AutoCompleteTextField to enter something
> > -press "m" and immediately "enter" to submit the form
> >
> > this will submit the form BEFORE the getChoices method returns the
> choices..
> > the form is submitted and then the AutoCompleteTextField is removed from
> the page because the panel (including the text field) is removed and a
> different panel is displayed via ajax.
> > then the getChoices(...) method returns the choices and the following
> exception occurs:
> >
> > org.apache.wicket.WicketRuntimeException: component
> content:form:nameField:textField not found on page test.MyPage[id = 0],
> listener interface = [RequestListenerInterface
> name=IActivePageBehaviorListener, method=public abstract void
> org.apache.wicket.behavior.IBehaviorListener.onRequest()]
> >  at test.TestApplication.access$0(TestApplication.java:145)
> >  at test.TestApplication$1.onRuntimeException(TestApplication.java:117)
> >  at
> org.apache.wicket.request.AbstractRequestCycleProcessor.onRuntimeException(AbstractRequestCycleProcessor.java:217)
> >  at
> org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:119)
> >  at org.apache.wicket.RequestCycle.step(RequestCycle.java:1302)
> >  at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1353)
> >  at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
> >  at
> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:355)
> >  at
> org.apache.wicket.protocol.http.WicketServlet..doGet(WicketServlet.java:124)
> >  at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
> >  at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> >  at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> >  at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> >  at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> >  at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
> >  at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
> >  at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> >  at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> >  at
> org..apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
> >  at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
> >  at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
> >  at
> org.apache.tomcat.util..net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
> >  at java.lang.Thread.run(Thread.java:619)
> >
> > When the getChoices method returns "null" or when I press "m" and then
> "enter" after ca. 3 seconds, everything works fine without an exception.
> >
> > I already saw that example:
> http://www.wicket-library.com/wicket-examples/ajax/autocomplete.1
> >
> > There the exception doesn't occur but I think it's maybe because
> > -setResponsePage is used and not ajax or
> > -the getChoices method returns the values in time
> >
> > Would appreciate any help
> >
> > Best regards,
> > Leigh
> >
> >
> >
> >
>
> -
> 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


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


Why don't all Link classes support a label like ExternalLink does?

2008-12-16 Thread Phil Grimm
Guys,

Maybe I'm missing something, but it seems odd that I need to create custom
components in order to set the label on a link. The ability to set the label
(the text the user sees) on a link seems like a very basic use case. Why
would that not be provided in all Link classes?

So far, I've needed to create my own LabeledLink, LabeledSubmitLink and now
it looks like I need to create a LabeledPageLink in order to do what
ExternalLink already provides.

I'm not sure this is the best way to do this, but this is what I've done to
implement a Link that allows the label to be specified.

public class LabeledLink extends Link
{
protected String label;

public LabeledLink(java.lang.String id, IModel model, String label)
{
super(id, model);
this.label = label;
}

@Override
protected void onComponentTagBody(final MarkupStream markupStream, final
ComponentTag openTag)
{
replaceComponentTagBody(markupStream, openTag, label);
}
}

Is there a better way?
Am I missing something?

Thanks!
Phil


Re: DefaultDataTable with date column

2008-10-01 Thread Phil Grimm
Pablo,

I'm displaying a date, pretty much the same way.
But it only displays the date (eg. 9/13/08).
columns.add(new PropertyColumn(new Model("Publish Date"),
"publishDate", "publishDate"));

My "publishDate" field is a java.util.Date.
I suspect the DataTable is just calling "toString()" on the Date object.

Phil

On Wed, Oct 1, 2008 at 5:44 PM, Pablo S. <[EMAIL PROTECTED]> wrote:

> Sorry, I have not explained more in detail.
> I know how to format a date, but I'm using the DefaultDataTable component
> so inside the component is filling the data taking the info from my model
> object.
> I have this code:
>
> List> columns = new ArrayList>();
> columns.add(new PropertyColumn(new Model("Delivery Date"),
> "deliveryDate", "deliveryDate"));
> ...
> DefaultDataTable table = new DefaultDataTable("table", columns, new
> SortableDocumentDataProvider(docs), 8);
> ...
>
> also I have this class:
>
> public class SortableDocumentDataProvider extends
> SortableDataProvider{
> ...
>
> and Document has a Date property, called "deliveryDate"
>
> When the html is rendered, the date appears as "00:00" instead of
> "2000/01/02". The only way I found, to solve this, is adding a String
> property that represents the date in the format I want, but I suppose that
> should exist a better solution.
>
> Thanks
> Pablo
> --
> From: "Edgar Merino" <[EMAIL PROTECTED]>
> Sent: Wednesday, October 01, 2008 7:28 PM
> To: 
> Subject: Re: DefaultDataTable with date column
>
>
>  Use java.text.DateFormat for that matter (take a look at SimpleDateFormat
>> in case you need more control over how you want your date to be formatted).
>>
>> Edgar Merino
>>
>>
>> Pablo S. escribió:
>>
>>> Hi, I would like to know how I can format a value from 1 column that is a
>>> date. I've a sortable dataprovider that contains my object, and one of the
>>> fields is a date. The html table shows the digits of the hour of the date
>>> (example: "00:00") instead of  something like this "2000/02/03"
>>>
>>> Thanks
>>> Pablo
>>>
>>>
>>>
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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


Re: wicket panels and parent class

2008-09-29 Thread Phil Grimm
It may not be a "best practice", but if MyInfoPanel does not need to be
"reusable" you can make it an inner class of MyProfile. Then userId can be
accessed directly.

Phil

On Mon, Sep 29, 2008 at 6:45 AM, Steve Swinsburg <
[EMAIL PROTECTED]> wrote:

> Hi all,
> I'm a new Wicket user and am developing an application making use of
> Panels. The Panels are working, however I need to access some objects in the
> panel that are defined in the parent class and am not sure how to do this.
>
> e.g.
>
> MyProfile.java:
>
> String userId = Profile.getCurrentUserId();
>
> add(new MyInfoPanel("myInfoPanel"));
>
>
> and in MyInfoPanel.java
>
> I need to be able to access userId for example.
>
> This is just a basic example, I need to access certain objects in
> MyInfoPanel.java that are defined in the parent class MyProfile.java
>
>
>
> cheers,
> Steve
>
>
>
>
>
>
>
>


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


Re: Page Navigation - order of items

2008-09-28 Thread Phil Grimm
Seems to me you'd want to sort the messages in the order they were received.
Like by timestamp or ID.

On Sun, Sep 28, 2008 at 10:32 AM, eyalbenamram <[EMAIL PROTECTED]>wrote:

>
> Hi again,
> I do not think I need to sort the list of items. think of 5 messages sent
> by
> the user, 3 items per page are displayed. I need it to show items 3,4,5 on
> the current page (in this order), and when pressing previous page, show
> items 1,2. Any solution?
>
>
> phil59 wrote:
> >
> > Eyal,
> >
> > As part of setting up the columns, I call SortableDataProvider.setSort()
> > ie., - dataProvider.setSort("publishDate", false);
> >
> > to define the initial sort column (and ascending/descending order).
> >
> > Phil
> >
> > On Sun, Sep 28, 2008 at 9:57 AM, eyalbenamram
> > <[EMAIL PROTECTED]>wrote:
> >
> >>
> >> Hi,
> >> I have a DataView object holding items, and a PagingNavigator object
> >> (customized)
> >> that enables paging. When the page is first loaded, the items are
> >> displayed
> >> from begining to end
> >> (if there are 5 items per page, 1-5 are displayed). I need them to be
> >> displayed from last to first,
> >> without me reersing the list. Is it possible?
> >> To elaborate, the list actually contains a conversation so each added
> >> item
> >> is a new message and thus needed to be displayed at the first page and
> >> not
> >> the last..
> >>
> >> Thanks in advance, Eyal.
> >>
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/Page-Navigation---order-of-items-tp19712206p19712206.html
> >> Sent from the Wicket - User mailing list archive at Nabble.com.
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> >
> > --
> > Phil Grimm
> > Mobile: (858) 335-3426
> > Skype: philgrimm336
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Page-Navigation---order-of-items-tp19712206p19712488.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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


Re: Page Navigation - order of items

2008-09-28 Thread Phil Grimm
Eyal,

As part of setting up the columns, I call SortableDataProvider.setSort()
ie., - dataProvider.setSort("publishDate", false);

to define the initial sort column (and ascending/descending order).

Phil

On Sun, Sep 28, 2008 at 9:57 AM, eyalbenamram <[EMAIL PROTECTED]>wrote:

>
> Hi,
> I have a DataView object holding items, and a PagingNavigator object
> (customized)
> that enables paging. When the page is first loaded, the items are displayed
> from begining to end
> (if there are 5 items per page, 1-5 are displayed). I need them to be
> displayed from last to first,
> without me reersing the list. Is it possible?
> To elaborate, the list actually contains a conversation so each added item
> is a new message and thus needed to be displayed at the first page and not
> the last..
>
> Thanks in advance, Eyal.
>
> --
> View this message in context:
> http://www.nabble.com/Page-Navigation---order-of-items-tp19712206p19712206.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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


Funky issue with double quotes (when copied from WIA ebook)

2008-03-24 Thread Phil Grimm
Guys,

More than a few times, I've been bitten by a problem with double quote
characters when I copy Wicket tags from the WIA PDF into to HTML editor of
my IDE (NetBeans).

In the NetBeans editor, the copied double-quote characters display with a
slight tilt to the right (the "normal" double quotes display as two vertical
lines). So, they are a different type of character, but NetBeans editor
renders them fine. And I think the browser (firefox) parses them ok.

But when the webapp is run, Wicket gives the following error..

WicketMessage:
The wicket:id attribute value must not be empty. May be unmatched
quotes?!?

And here, you can see the display of the double-quote characters (in the
browser error page).

   Register

To fix this, I just go delete the double quotes in the NetBeans editor and
re-type them.
I realize this is probably some kind of font issue, but if there is a way to
address this, it would save some people frustration.
This is not a big deal, but if someone understands the issue, it might help
some of us avoid this.

Then again, if it's not obvious what the problem is, "if it hurts, don't do
it" might be a reasonable response.
Probably not worth spending any time on investigating.


Phil

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


Re: Links on a sortable column

2008-03-17 Thread Phil Grimm
Johnnie,

All you need to do is override PropertyColumn#populateItem() as I've done
below.
The column is still sortable.

In my case, I add an ExternalLink to the cell that does a popup, but this
code gives you the general idea.

Phil

columns.add(new PropertyColumn(new Model("Title"), "title", "title")
{
@Override
public void populateItem(Item cellItem, String componentId,
IModel model)
{
ExternalLink link = new ExternalLink(componentId,
((ContentItem) model.getObject()).getUrl(),
((ContentItem) model.getObject()).getTitle()));

cellItem.add(link);
}
});


On Mon, Mar 17, 2008 at 1:51 PM, Johnnie <[EMAIL PROTECTED]> wrote:

>
> Martijn,
>
> What I need is something like the "Actions" column on the "DataTable
> Example" found at http://wicketstuff.org/wicket13/repeater/ but the column
> should be sortable just like the "First Name" and "Last Name" columns of
> that same example.
>
> Regards,
>
> Johnnie
>
>
> Martijn Dashorst wrote:
> >
> > create a panel that contains your links, and add that to the column.
> >
> > Martijn
> >
> > On 3/17/08, Johnnie <[EMAIL PROTECTED]> wrote:
> >>
> >>  Hi,
> >>
> >>  On a DataTable I want to have a sortable column whose cell's are
> links.
> >> How
> >>  do how do that?
> >>
> >>  Best regards,
> >>
> >>  Johnnie
> >>
> >> --
> >>  View this message in context:
> >>
> http://www.nabble.com/Links-on-a-sortable-column-tp16092890p16092890.html
> >>  Sent from the Wicket - User mailing list archive at Nabble.com.
> >>
> >>
> >>  -
> >>  To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>  For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> >
> > --
> > Buy Wicket in Action: http://manning.com/dashorst
> > Apache Wicket 1.3.2 is released
> > Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.2
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Links-on-a-sortable-column-tp16092890p16098487.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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


Re: Links on a sortable column

2008-03-17 Thread Phil Grimm
I used the "Data Table Example" on this page for sorting/pagination:
http://www.wicket-library.com/wicket-examples/repeater/

Here's code I did to make the cells in one of the columns into links:

columns.add(new PropertyColumn(new Model("Title"), "title", "title")
{
// Build the title field as a link
@Override
public void populateItem(Item cellItem, String componentId,
IModel model)
{
ExternalLink link = new ExternalLink(componentId,
((ContentItem) model.getObject()).getUrl(),
((ContentItem) model.getObject()).getTitle())
{
@Override
protected void onComponentTag(ComponentTag tag)
{
super.onComponentTag(tag);
tag.put("class", "title-link");
}
};

link.setPopupSettings(SearchPage.this.popupSettings);
cellItem.add(link);
}
});

Phil

On Mon, Mar 17, 2008 at 12:07 PM, jeredm <[EMAIL PROTECTED]>
wrote:

>
> You might check out this control.
>
> http://www.inmethod.com/
>
> I have not used it outside of the demo on the website, but somebody
> suggested it to me when I was asking about sorting.  I was looking for a
> drag and drop sort, so I didn't use the control.  This control does have
> sortable and resizable columns.
>
>
> Johnnie wrote:
> >
> > Hi,
> >
> > On a DataTable I want to have a sortable column whose cell's are links.
> > How do how do that?
> >
> > Best regards,
> >
> > Johnnie
> >
>
> --
> View this message in context:
> http://www.nabble.com/Links-on-a-sortable-column-tp16092890p16097037.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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


Re: Autolinking Relative Paths

2008-03-16 Thread Phil Grimm
Well, "../" path it's slightly more tolerant to refactoring.
You can change anything that comes before the "../" without needing to touch
HTML files.

So Igor, do you always use absolute paths?

I'm thinking that's what I'll use, since the limited relative path support
only works when the current page is above the destination (in the path),
which for my package scheme is never.

-Phil

On Sun, Mar 16, 2008 at 2:31 PM, Igor Vaynberg <[EMAIL PROTECTED]>
wrote:

> ../ syntax is just as prone to refactoring errors as the absolute
> path, so i dont buy that argument
>
> -igor
>
>
> On Sun, Mar 16, 2008 at 11:51 AM, Phil Grimm <[EMAIL PROTECTED]> wrote:
> > Yeah, as a new user to Wicket, I just see it as another feature of
> Wicket.
> >
> >  There's no issues with it, if all your pages are in the same package.
> >  Is that what most Wicket developers do?
> >
> >  I agree that searching the classpath could be problematic and more
> involved
> >  to implement. But, the "../" support seems reasonable and would really
> help
> >  when you'd otherwise have to resort to full absolute paths (which it
> seems
> >  to me is most the time).
> >
> >  In general, if a framework allows things to break easily when
> refactoring
> >  occurs, this is not good.
> >
> >  BTW, NetBeans (even with the Wicket plugin) does not fix the paths when
> I
> >  refactor the package name. It's nice that IDEA does. NetBeans kinda
> blows
> >  (buggy as hell), but I'm stuck with it for now :(
> >
> >  Phil
> >
> >
> >
> >  On Sun, Mar 16, 2008 at 1:21 PM, James Carman <
> [EMAIL PROTECTED]>
> >  wrote:
> >
> >
> >
> >  > On 3/16/08, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> >  > > you guys do both realize that wicket:link is nothing more then
> >  > >  convinience. it isnt really meant to support all these complex
> >  > >  usecases. it is nice when you need to quickly include an image or
> link
> >  > >  to a near by page, but nothing more then that.
> >  >
> >  > The usecase we're talking about is hardly complex.  Nor is it
> >  > unreasonable to think that  should be able to handle it.
> >  >
> >  > -----
> >  > To unsubscribe, e-mail: [EMAIL PROTECTED]
> >  > For additional commands, e-mail: [EMAIL PROTECTED]
> >  >
> >  >
> >
> >
> >
> >
> > --
> >  Phil Grimm
> >  Mobile: (858) 335-3426
> >  Skype: philgrimm336
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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


Re: Autolinking Relative Paths

2008-03-16 Thread Phil Grimm
Yeah, as a new user to Wicket, I just see it as another feature of Wicket.

There's no issues with it, if all your pages are in the same package.
Is that what most Wicket developers do?

I agree that searching the classpath could be problematic and more involved
to implement. But, the "../" support seems reasonable and would really help
when you'd otherwise have to resort to full absolute paths (which it seems
to me is most the time).

In general, if a framework allows things to break easily when refactoring
occurs, this is not good.

BTW, NetBeans (even with the Wicket plugin) does not fix the paths when I
refactor the package name. It's nice that IDEA does. NetBeans kinda blows
(buggy as hell), but I'm stuck with it for now :(

Phil



On Sun, Mar 16, 2008 at 1:21 PM, James Carman <[EMAIL PROTECTED]>
wrote:

> On 3/16/08, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> > you guys do both realize that wicket:link is nothing more then
> >  convinience. it isnt really meant to support all these complex
> >  usecases. it is nice when you need to quickly include an image or link
> >  to a near by page, but nothing more then that.
>
> The usecase we're talking about is hardly complex.  Nor is it
> unreasonable to think that  should be able to handle it.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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


Re: Autolinking Relative Paths

2008-03-16 Thread Phil Grimm
I think a JIRA request is appropriate.
Perhaps we'll hear a confirmation from the Wicket developers.

I'd add the following to the request...

1. Add support for "../" relative path resolution
2. Add support for searching the classpath (if absolute and relative search
fails)
-- I think this is reasonable, but there may be issues here
-- This is the only way to have  paths continue to work
even after refactoring pages/packages.
3. Document the valid path syntax (and limitations) in the Wiki, WIA, etc.

Phil

On Sun, Mar 16, 2008 at 11:46 AM, James Carman <[EMAIL PROTECTED]>
wrote:

> On 3/16/08, Phil Grimm <[EMAIL PROTECTED]> wrote:
> > That's funny, I was about to post regarding the numerous issues with
> >  ...
> >
> >  And one suggestion I was going to give was to add support for
> >  "../packge/Page.html".
> >  I don't think it currently supports this, at least I couldn't see it
> from a
> >  code examination.
> >
>
> Ok, thanks, Phil.  I thought I was doing it correctly.  My HTML can be
> viewed in the browser for a "preview" just fine.  Maybe we should file
> a JIRA enhancement request?
>
> -----
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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


Re: Autolinking Relative Paths

2008-03-16 Thread Phil Grimm
That's funny, I was about to post regarding the numerous issues with
...

And one suggestion I was going to give was to add support for
"../packge/Page.html".
I don't think it currently supports this, at least I couldn't see it from a
code examination.

Your only option, I believe, is to resort to absolute path...
"/com/mycompany/myproject/module1/page/Page1.html"
or
".com.mycompany.myproject.module1.page.Page1.html"

This of course breaks if you refactor your packages.

BTW, this absolute path syntax is not documented anywhere I could find. Not
even in the WIA book. I found it only be going to the source.

My thinking is that  works great if you keep all your pages in
the same package, but has numerous issues if you separate your pages into
their own packages, as I have done.

I think the uber feature would be to have it search the entire classpath (if
not found in the "current pages" package).
This would solve the issue of  paths breaking when pages are
refactored to other packages.

Phil

On Sun, Mar 16, 2008 at 11:07 AM, James Carman <[EMAIL PROTECTED]>
wrote:

> Suppose I have a package structure like this...
>
> com.mycompany.myproject
> --- module1
> --- page
> - Page1.html
> --- module2
> --- page
> - Page2.html
>
> If I want to autolink from Page1.html to Page2.html, it would look like:
>
> 
>  Click Here!
> 
>
> Correct?  This doesn't appear to be working for me.  I get a warning
> from AutolinkResolver:
>
> "WARN  - AutoLinkResolver   - Did not find corresponding java
> class: .module2.page.Page2"
>
> -----
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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


Re: Planning Wicket Next Generation

2008-03-16 Thread Phil Grimm
Another YES for 1.5
Phil

On Sun, Mar 16, 2008 at 10:12 AM, Maurice Marrink <[EMAIL PROTECTED]> wrote:

> +1 (non binding) for a quick x-m1 with only generics release
>
> Maurice
>
> On Sun, Mar 16, 2008 at 3:32 PM, Thijs <[EMAIL PROTECTED]> wrote:
> >
> >  +1 to java 5
> >
> >
> >
> >  atul singh wrote:
> >  java 5 now definitely
> >
> > On Sun, Mar 16, 2008 at 7:48 PM, James Carman <
> [EMAIL PROTECTED]>
> > wrote:
> >
> >
> >
> >  On 3/16/08, Maarten Bosteels <[EMAIL PROTECTED]> wrote:
> >
> >
> >  +1 for moving to java 5
> >
> >
> >  +1 for moving to Java 5 *quickly* :)
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >
> >
> >  -
> To
> > unsubscribe, e-mail: [EMAIL PROTECTED] For additional
> > commands, e-mail: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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


Re: My New Wicket Website

2008-03-14 Thread Phil Grimm
Dan,
Very impressive for 1.5 weeks of work! How much would you attribute that
productivity to Wicket vs your general experience and prowess?

I've just started building a site with Wicket, but I can see that it could
become very productive after working with it for a while. Coming from
Struts/JSP, it's quite refreshing.

Looks like you have some HTML/CSS design chops too. I like the styling...
the shadow effects are cool.

I'll be watching the progress on your site. Thanks for the peek.

Phil

On Fri, Mar 14, 2008 at 6:26 PM, Dan Kaplan <[EMAIL PROTECTED]> wrote:

> Hello,
>
>
>
> I wanted to let you guys know about my new wicket website:
> http://www.startfound.com <http://www.startfound.com/>
>
>
>
> I've only been working on this for about 1.5 weeks, so there's not much
> functionality and it's not very interactive, but I have a lot of big plans
> in the future.
>
>
>
> Forgive my spam :-)
>
>
>
> Thanks,
>
> Dan
>
>


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


DateTime.setLabel() issue and a related (but general) setLabel() question

2008-03-12 Thread Phil Grimm
Hey Guys,
I'm building my first Wicket app and, so far, am really loving Wicket!

I've built my first form and am stumped on a issue with the DateTime
component. I call setLabel() on all the fields in my form and all the labels
I provide appear in the validation error messages except one, the DateTime
field.

Here's the code

HTML:

  My Date:
  


JAVA:
form.add(new DateField("myDate").setLabel(new Model("My Date"));

The problem is that the validation error message refers to the field as
"date" and not "My Date".

Looking at the source, DateTime.java, I can see why. It appears the
setLabel() is being applied to the FormComponentPanel, which DateTime
extends and not the 'private final DateTextField dateField' within DateTime.

I don't see a way to get at the private "dateField" to setLabel() on it.
How should this be done?


And a related setLabel() question

Looking at my example code above, you can see that the label "My Date" is
being maintained in both the HTML and the Java. It would be nice if I could
just specify it in the Java and have Wicket apply it in the HTML.

For example...

HTML:

  [wicket puts label here - with
colon?]
  


Is this possible now?
Or is it a reasonable feature idea?


Thanks!
Phil