JSR 286 spec draft 14

何だか、変更点を見ると、まだ、いろいろと変えているな・・・。javadoc を見ると、FilterやWrapperが入ったりしている。GenericPortletを見ると、processEventとserveResourceが違いかな。

  • XSD: replaced expiration-cache with caching
  • API: changed expiration time from long to int
  • removed serveFragment
  • allow cookies to be set in action and event response too
  • changed shared render parameters into public render parameters
  • moved nextPossiblePortletModes to the render response
  • added container runtime option API
  • added runtime options: javax.portlet.renderHeaders, javax.portlet.includedPortletSessionScope
  • renamed ClientHttpRequest into ClientDataRequest
  • added MimeResponse
  • clearified PortletURL.setSecure

http://ipc658.inf-swt.uni-jena.de/spec/

ポートレットでforEachでボタンを押されたときに値を渡す

teeda-html-exampleのsrc/main/webapp/view/foreach/forEachList.htmlにあることをポートレットでやると、idにネームスペースが挿入されるので、なやましい問題に遭遇することになるけど、同じようなことをやるためには以下のようにやれば良いかも。

<form id="forEachListForm"><input type="hidden" name="clickIndex"/>
...
<td>
<input type="button" id="doForEachResult" value="test" onclick="this.form.firstChild.value=this.nextSibling.value;"/><input type="hidden" id="aaaIndex-x"/>
</td>

Firefoxでは、そんな感じでうまくいった。というわけで、一応、メモっとく。

Yahooメール宛のメールヘッダー

近頃、Yahooメール宛のメールで「; domainkeys=neutral (no sig)」の前に空の改行が入れられているせいか、Thunderbirdでヘッダー部分の表示がおかしくなる。なんで、空の改行が入るのか、わからないけど、同じメールを他のメールアドレス宛でも受け取っているけど、特に問題はない。それを考えると、Yahooがドメインキーの処理でバグっているのじゃないかな・・・。近頃、Yahooメールも運用があやしいような・・・。