<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" version="2.0">
<channel>
	<title>Comments for Molindo Techblog</title>
	
	<link>http://techblog.molindo.at</link>
	<description>Molindo Techblog - formerly known as talk-on-tech.blogspot.com</description>
	<lastBuildDate>Mon, 08 Mar 2010 09:28:45 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/talkontech-comments" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="talkontech-comments" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Comment on Compass: Role based searching using CompassQueryFilter by Michael Sparer</title>
		<link>http://techblog.molindo.at/2009/12/compass-role-based-searching-using-compassqueryfilter.html/comment-page-1#comment-7757</link>
		<dc:creator>Michael Sparer</dc:creator>
		<pubDate>Mon, 08 Mar 2010 09:28:45 +0000</pubDate>
		<guid isPermaLink="false">http://techblog.molindo.at/?p=157#comment-7757</guid>
		<description>Hey Mak, 

it doesn't matter how often a user's role changes as I only index the roles _required to read an entry_.</description>
		<content:encoded><![CDATA[<p>Hey Mak, </p>
<p>it doesn&#8217;t matter how often a user&#8217;s role changes as I only index the roles _required to read an entry_.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Compass: Role based searching using CompassQueryFilter by Mak</title>
		<link>http://techblog.molindo.at/2009/12/compass-role-based-searching-using-compassqueryfilter.html/comment-page-1#comment-7755</link>
		<dc:creator>Mak</dc:creator>
		<pubDate>Mon, 08 Mar 2010 08:16:40 +0000</pubDate>
		<guid isPermaLink="false">http://techblog.molindo.at/?p=157#comment-7755</guid>
		<description>what if a user's role changes? Do you reindex? I am looking for a similar solution but in my application, a users' role changes often and rebuilding the index does not make sense. I guess your suggestion 1 is the best in my case. Do you have any more suggestions? :)</description>
		<content:encoded><![CDATA[<p>what if a user&#8217;s role changes? Do you reindex? I am looking for a similar solution but in my application, a users&#8217; role changes often and rebuilding the index does not make sense. I guess your suggestion 1 is the best in my case. Do you have any more suggestions? <img src='http://techblog.molindo.at/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Wicket: Annotation-based Mounting of Resources by Matt</title>
		<link>http://techblog.molindo.at/2009/10/wicket-annotation-based-mounting-of-resources.html/comment-page-1#comment-7078</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Wed, 03 Feb 2010 03:34:23 +0000</pubDate>
		<guid isPermaLink="false">http://techblog.molindo.at/?p=128#comment-7078</guid>
		<description>Stefan,

I think I am going to stay with my builder-wrapper approach for the time being. Extending your class is hard because if I want to add a new public method signature, I'll need to override every single public method that returns a "this" reference to return the narrower type.

For example, if I want to add a setCssMedia() method (which as far as I can tell is something that ResourceMount does not currently support), my class will look like this:

public class CssResourceMount extends ResourceMount
{
    ...
    public CssResourceMount setCssMedia(String media)
    {
        ...
    }
}

But now if I try to use this new class like this:

new CssResourceMount()
    .setPath(...)
    .setCssMedia(...)

I'll get this compilation error:

cannot find symbol
symbol  : method setCssMedia(java.lang.String)
location: class org.wicketstuff.mergedresources.ResourceMount

Because setPath() is returning ResourceMount, not CssResourceMount. I'd have to override and redefine setPath() (and every other public method that returns a "this" reference) to have the CssResourceMount return signature.

So yes, I can subclass and override existing methods, but I can't subclass to effect the public API without a lot of extra work.


Anyway, I like what I see otherwise in 3.0. Don't let me hold you up. I'll add JIRA issues later this week for the CSS media and CSS/JS detection enhancements.</description>
		<content:encoded><![CDATA[<p>Stefan,</p>
<p>I think I am going to stay with my builder-wrapper approach for the time being. Extending your class is hard because if I want to add a new public method signature, I&#8217;ll need to override every single public method that returns a &#8220;this&#8221; reference to return the narrower type.</p>
<p>For example, if I want to add a setCssMedia() method (which as far as I can tell is something that ResourceMount does not currently support), my class will look like this:</p>
<p>public class CssResourceMount extends ResourceMount<br />
{<br />
    &#8230;<br />
    public CssResourceMount setCssMedia(String media)<br />
    {<br />
        &#8230;<br />
    }<br />
}</p>
<p>But now if I try to use this new class like this:</p>
<p>new CssResourceMount()<br />
    .setPath(&#8230;)<br />
    .setCssMedia(&#8230;)</p>
<p>I&#8217;ll get this compilation error:</p>
<p>cannot find symbol<br />
symbol  : method setCssMedia(java.lang.String)<br />
location: class org.wicketstuff.mergedresources.ResourceMount</p>
<p>Because setPath() is returning ResourceMount, not CssResourceMount. I&#8217;d have to override and redefine setPath() (and every other public method that returns a &#8220;this&#8221; reference) to have the CssResourceMount return signature.</p>
<p>So yes, I can subclass and override existing methods, but I can&#8217;t subclass to effect the public API without a lot of extra work.</p>
<p>Anyway, I like what I see otherwise in 3.0. Don&#8217;t let me hold you up. I&#8217;ll add JIRA issues later this week for the CSS media and CSS/JS detection enhancements.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Wicket: Annotation-based Mounting of Resources by Stefan Fußenegger</title>
		<link>http://techblog.molindo.at/2009/10/wicket-annotation-based-mounting-of-resources.html/comment-page-1#comment-7073</link>
		<dc:creator>Stefan Fußenegger</dc:creator>
		<pubDate>Tue, 02 Feb 2010 21:01:56 +0000</pubDate>
		<guid isPermaLink="false">http://techblog.molindo.at/?p=128#comment-7073</guid>
		<description>Ok</description>
		<content:encoded><![CDATA[<p>Ok</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Wicket: Annotation-based Mounting of Resources by Matt</title>
		<link>http://techblog.molindo.at/2009/10/wicket-annotation-based-mounting-of-resources.html/comment-page-1#comment-7072</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Tue, 02 Feb 2010 21:00:42 +0000</pubDate>
		<guid isPermaLink="false">http://techblog.molindo.at/?p=128#comment-7072</guid>
		<description>Thanks, Stefan. This looks good. I will update my code to use your latest changes and also submit a JIRA issue for the JS/CSS detection.

Give me a couple days to test this out; I'll let you know later this week if I run into any problems that would need to be considered before the 3.0 release.</description>
		<content:encoded><![CDATA[<p>Thanks, Stefan. This looks good. I will update my code to use your latest changes and also submit a JIRA issue for the JS/CSS detection.</p>
<p>Give me a couple days to test this out; I&#8217;ll let you know later this week if I run into any problems that would need to be considered before the 3.0 release.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Wicket: Annotation-based Mounting of Resources by Stefan Fußenegger</title>
		<link>http://techblog.molindo.at/2009/10/wicket-annotation-based-mounting-of-resources.html/comment-page-1#comment-7063</link>
		<dc:creator>Stefan Fußenegger</dc:creator>
		<pubDate>Tue, 02 Feb 2010 11:34:01 +0000</pubDate>
		<guid isPermaLink="false">http://techblog.molindo.at/?p=128#comment-7063</guid>
		<description>@Brandon version 2.1 should soon be available from maven repository at http://wicketstuff.org/maven/repository/org/wicketstuff/wicketstuff-merged-resources/

@Matt I've just committed changes to ResourceMount inspired by your ResourceMountBuilder. Actually, I don't really see the main benefit of using yet another builder around a builder API. It's best to simply extend ResourceMount if you want to change it's default behaviour. There are lots of protected methods you may override in order to change the defaults. Additionally, you may use ResourceMount#clone() to reuse configuration of a single ResourceMount for multiple mounts. However, I've added a new constructor (ResourceMount(boolean)) and a new method (ResourceMount#build(WebApplication)). Please have a look and tell me what you think. It's the last change to get any suggestions into version 3.0. Lastly, I've used your ResourceBuilderTest as ResourceMount test. The only thing it doesn't support like your ResourceBuilder is detection of JS and CSS files being added to the same merged resource. If you'd like to see this feature in 3.1, please crate a JIRA issue.

Cheers, Stefan</description>
		<content:encoded><![CDATA[<p>@Brandon version 2.1 should soon be available from maven repository at <a href="http://wicketstuff.org/maven/repository/org/wicketstuff/wicketstuff-merged-resources/" rel="nofollow">http://wicketstuff.org/maven/repository/org/wicketstuff/wicketstuff-merged-resources/</a></p>
<p>@Matt I&#8217;ve just committed changes to ResourceMount inspired by your ResourceMountBuilder. Actually, I don&#8217;t really see the main benefit of using yet another builder around a builder API. It&#8217;s best to simply extend ResourceMount if you want to change it&#8217;s default behaviour. There are lots of protected methods you may override in order to change the defaults. Additionally, you may use ResourceMount#clone() to reuse configuration of a single ResourceMount for multiple mounts. However, I&#8217;ve added a new constructor (ResourceMount(boolean)) and a new method (ResourceMount#build(WebApplication)). Please have a look and tell me what you think. It&#8217;s the last change to get any suggestions into version 3.0. Lastly, I&#8217;ve used your ResourceBuilderTest as ResourceMount test. The only thing it doesn&#8217;t support like your ResourceBuilder is detection of JS and CSS files being added to the same merged resource. If you&#8217;d like to see this feature in 3.1, please crate a JIRA issue.</p>
<p>Cheers, Stefan</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Wicket: Annotation-based Mounting of Resources by Stefan Fußenegger</title>
		<link>http://techblog.molindo.at/2009/10/wicket-annotation-based-mounting-of-resources.html/comment-page-1#comment-7019</link>
		<dc:creator>Stefan Fußenegger</dc:creator>
		<pubDate>Sat, 30 Jan 2010 14:32:22 +0000</pubDate>
		<guid isPermaLink="false">http://techblog.molindo.at/?p=128#comment-7019</guid>
		<description>@Brandon this bug was already fixed in latest snapshot.

@Matt looks interesting, especially the test case. I'll have a closer look next week.

I'll release versions 2.1 and 3.0 on Monday.

Have a nice weekend!

Cheers, Stefan</description>
		<content:encoded><![CDATA[<p>@Brandon this bug was already fixed in latest snapshot.</p>
<p>@Matt looks interesting, especially the test case. I&#8217;ll have a closer look next week.</p>
<p>I&#8217;ll release versions 2.1 and 3.0 on Monday.</p>
<p>Have a nice weekend!</p>
<p>Cheers, Stefan</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Wicket: Annotation-based Mounting of Resources by Matt</title>
		<link>http://techblog.molindo.at/2009/10/wicket-annotation-based-mounting-of-resources.html/comment-page-1#comment-7013</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Sat, 30 Jan 2010 04:27:29 +0000</pubDate>
		<guid isPermaLink="false">http://techblog.molindo.at/?p=128#comment-7013</guid>
		<description>Stefan,

I would appreciate a 3.0 release when you have the chance. I've only been using merged-resource on small projects, but it has held up well. I am not, however, using the annotation features, as those didn't seem to fit my coding style.

On a related note, I wrapped your code with a simple helper class of my own that has been working well for my purposes:

http://opensource.55minutes.com/svn/java/trunk/fiftyfive-wicket/src/main/java/fiftyfive/wicket/resource/MergedResourceBuilder.java

I also figured out how to unit test the merged-resources functionality:

http://opensource.55minutes.com/svn/java/trunk/fiftyfive-wicket/src/test/java/fiftyfive/wicket/resource/MergedResourceBuilderTest.java

Thought you might be curious...</description>
		<content:encoded><![CDATA[<p>Stefan,</p>
<p>I would appreciate a 3.0 release when you have the chance. I&#8217;ve only been using merged-resource on small projects, but it has held up well. I am not, however, using the annotation features, as those didn&#8217;t seem to fit my coding style.</p>
<p>On a related note, I wrapped your code with a simple helper class of my own that has been working well for my purposes:</p>
<p><a href="http://opensource.55minutes.com/svn/java/trunk/fiftyfive-wicket/src/main/java/fiftyfive/wicket/resource/MergedResourceBuilder.java" rel="nofollow">http://opensource.55minutes.com/svn/java/trunk/fiftyfive-wicket/src/main/java/fiftyfive/wicket/resource/MergedResourceBuilder.java</a></p>
<p>I also figured out how to unit test the merged-resources functionality:</p>
<p><a href="http://opensource.55minutes.com/svn/java/trunk/fiftyfive-wicket/src/test/java/fiftyfive/wicket/resource/MergedResourceBuilderTest.java" rel="nofollow">http://opensource.55minutes.com/svn/java/trunk/fiftyfive-wicket/src/test/java/fiftyfive/wicket/resource/MergedResourceBuilderTest.java</a></p>
<p>Thought you might be curious&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Wicket: Annotation-based Mounting of Resources by Brandon Fuller</title>
		<link>http://techblog.molindo.at/2009/10/wicket-annotation-based-mounting-of-resources.html/comment-page-1#comment-7009</link>
		<dc:creator>Brandon Fuller</dc:creator>
		<pubDate>Sat, 30 Jan 2010 01:16:57 +0000</pubDate>
		<guid isPermaLink="false">http://techblog.molindo.at/?p=128#comment-7009</guid>
		<description>First off, thanks for this package.  It was exactly what I was looking for!  I have everything working just fine on version 2.0.  However, I keep getting serialization errors for your components.  Here is a log:

8:14:25,909 INFO  [STDOUT] 2010-01-29 18:14:25,909 ERROR [org.apache.wicket.util.lang.Objects] - Error serializing object class com.foo.txbu.directory.markup.html.pages.LoginPage [object=[Page class = com.foo.txbu.directory.markup.html.pages.LoginPage, id = 5, version = 0]]
org.apache.wicket.util.io.SerializableChecker$WicketNotSerializableException: Unable to serialize class: org.wicketstuff.mergedresources.ResourceSpec
Field hierarchy is:
  5 [class=com.foo.txbu.directory.markup.html.pages.LoginPage, path=5]
    private java.lang.Object org.apache.wicket.MarkupContainer.children [class=[Ljava.lang.Object;]
      protected org.apache.wicket.util.collections.MiniMap org.apache.wicket.markup.html.link.BookmarkablePageLink.parameters[5] [class=com.foo.txbu.directory.markup.html.pages.BasePage$11, path=5:linkLogo]
        private java.lang.Object org.apache.wicket.MarkupContainer.children [class=org.apache.wicket.markup.html.image.Image, path=5:linkLogo:logo]
          private final org.apache.wicket.markup.html.image.resource.LocalizedImageResource org.apache.wicket.markup.html.image.Image.localizedImageResource [class=org.apache.wicket.markup.html.image.resource.LocalizedImageResource]
            private org.apache.wicket.Resource org.apache.wicket.markup.html.image.resource.LocalizedImageResource.resource [class=org.wicketstuff.mergedresources.resources.CachedResource]
              private final org.wicketstuff.mergedresources.resources.MergedResourceStream org.wicketstuff.mergedresources.resources.MergedResource._mergedResourceStream [class=org.wicketstuff.mergedresources.resources.MergedResourceStream]
                private final org.wicketstuff.mergedresources.ResourceSpec[] org.wicketstuff.mergedresources.resources.MergedResourceStream._specs [class=[Lorg.wicketstuff.mergedresources.ResourceSpec;]
                  private final org.wicketstuff.mergedresources.ResourceSpec[] org.wicketstuff.mergedresources.resources.MergedResourceStream._specs[0] [class=org.wicketstuff.mergedresources.ResourceSpec] &lt;----- field that is not serializable

Any ideas?</description>
		<content:encoded><![CDATA[<p>First off, thanks for this package.  It was exactly what I was looking for!  I have everything working just fine on version 2.0.  However, I keep getting serialization errors for your components.  Here is a log:</p>
<p>8:14:25,909 INFO  [STDOUT] 2010-01-29 18:14:25,909 ERROR [org.apache.wicket.util.lang.Objects] &#8211; Error serializing object class com.foo.txbu.directory.markup.html.pages.LoginPage [object=[Page class = com.foo.txbu.directory.markup.html.pages.LoginPage, id = 5, version = 0]]<br />
org.apache.wicket.util.io.SerializableChecker$WicketNotSerializableException: Unable to serialize class: org.wicketstuff.mergedresources.ResourceSpec<br />
Field hierarchy is:<br />
  5 [class=com.foo.txbu.directory.markup.html.pages.LoginPage, path=5]<br />
    private java.lang.Object org.apache.wicket.MarkupContainer.children [class=[Ljava.lang.Object;]<br />
      protected org.apache.wicket.util.collections.MiniMap org.apache.wicket.markup.html.link.BookmarkablePageLink.parameters[5] [class=com.foo.txbu.directory.markup.html.pages.BasePage$11, path=5:linkLogo]<br />
        private java.lang.Object org.apache.wicket.MarkupContainer.children [class=org.apache.wicket.markup.html.image.Image, path=5:linkLogo:logo]<br />
          private final org.apache.wicket.markup.html.image.resource.LocalizedImageResource org.apache.wicket.markup.html.image.Image.localizedImageResource [class=org.apache.wicket.markup.html.image.resource.LocalizedImageResource]<br />
            private org.apache.wicket.Resource org.apache.wicket.markup.html.image.resource.LocalizedImageResource.resource [class=org.wicketstuff.mergedresources.resources.CachedResource]<br />
              private final org.wicketstuff.mergedresources.resources.MergedResourceStream org.wicketstuff.mergedresources.resources.MergedResource._mergedResourceStream [class=org.wicketstuff.mergedresources.resources.MergedResourceStream]<br />
                private final org.wicketstuff.mergedresources.ResourceSpec[] org.wicketstuff.mergedresources.resources.MergedResourceStream._specs [class=[Lorg.wicketstuff.mergedresources.ResourceSpec;]<br />
                  private final org.wicketstuff.mergedresources.ResourceSpec[] org.wicketstuff.mergedresources.resources.MergedResourceStream._specs[0] [class=org.wicketstuff.mergedresources.ResourceSpec] &lt;&#8212;&#8211; field that is not serializable</p>
<p>Any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Wicket: Annotation-based Mounting of Resources by Stefan Fußenegger</title>
		<link>http://techblog.molindo.at/2009/10/wicket-annotation-based-mounting-of-resources.html/comment-page-1#comment-7001</link>
		<dc:creator>Stefan Fußenegger</dc:creator>
		<pubDate>Fri, 29 Jan 2010 11:15:51 +0000</pubDate>
		<guid isPermaLink="false">http://techblog.molindo.at/?p=128#comment-7001</guid>
		<description>Hi Matt,

well, actually I planned to release 3.0 for a while. The only problem is that I'm still using 2.x (as I'm currently stuck on Wicket 1.3). 

However, if you think 3.0 works and is ready for prime time, I would release it. Therefore, my idea would be that you keep developing and testing with 3.0-SNAPSHOT, but as soon as your project is ready for production, I will create a release.

If you're interested in helping with open issues (currently, there aren't any though), see http://wicketstuff.org/jira/browse/WMR 

Cheers, Stefan</description>
		<content:encoded><![CDATA[<p>Hi Matt,</p>
<p>well, actually I planned to release 3.0 for a while. The only problem is that I&#8217;m still using 2.x (as I&#8217;m currently stuck on Wicket 1.3). </p>
<p>However, if you think 3.0 works and is ready for prime time, I would release it. Therefore, my idea would be that you keep developing and testing with 3.0-SNAPSHOT, but as soon as your project is ready for production, I will create a release.</p>
<p>If you&#8217;re interested in helping with open issues (currently, there aren&#8217;t any though), see <a href="http://wicketstuff.org/jira/browse/WMR" rel="nofollow">http://wicketstuff.org/jira/browse/WMR</a> </p>
<p>Cheers, Stefan</p>
]]></content:encoded>
	</item>
</channel>
</rss><!-- Dynamic page generated in 0.492 seconds. --><!-- File not cached! Super Cache Couldn't write to: wp-content/cache/wp-cache-7e34e7730ed829371e1ef000b16a74c4.html -->
